Subject: | Automatically wrap public data members? |
Should XS++ have some facility to (semi-?)automatically wrap public data members?
class IamReallyAStruct {
public:
int foo;
double bar;
}
Resulting in Perl mutator methods "foo" and "bar"?
int
IamReallyAStruct::foo(...)
CODE:
if (items > 1)
THIS->foo = SvIV(ST(1)); /* This is the hard bit: inserting proper typemap here */
RETVAL = THIS->foo;
OUTPUT: RETVAL