Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Part of the attraction of Ken's rewrite is that it seems to lend itself more readily to typemapping(as regards the OUTPUT section of the typemap)
That's only marginally true. Using Ken's rewrite, the typemap OUTPUT consists of one line of code. Sticking with the original version of Soldier::new(), five lines of OUTPUT code are required. For anyone who wants to <readmore>, below my sig is a version of the script that I originally posted, modified to use either of the typemaps (which are also presented below). I still haven't found an answer to either question 1) or 2) in my op. Cheers, Rob
The script:
The typemap that preserves the READONLY flag: The typemap that dispenses with the READONLY flag:
In reply to Re: Inline::C-Cookbook's "Object Oriented Inline"
by syphilis
|
|