Re: Inline::C-Cookbook's "Object Oriented Inline"by syphilis (Archbishop)
|on Aug 27, 2007 at 10:40 UTC||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.
The typemap that preserves the READONLY flag:
The typemap that dispenses with the READONLY flag: