kingkongrevenge has asked for the wisdom of the Perl Monks concerning the following question:
I have a little thing working where the constructor of a C++ object blesses itself into a perl class. This works fine, but I want to use inheritance on the perl side for the resulting blessed scalar.
/* C++ ctor */ SomeClassName::SomeClassName() { ... sv_setref_pv( mySv, "SomeClassName", (void*)this ); //This works fine. /* How do I tell mySv it @ISA "SomeBaseClass"? */ ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perlapi magic: setting ISA from C code
by almut (Canon) on Feb 23, 2009 at 00:39 UTC | |
by kingkongrevenge (Scribe) on Feb 23, 2009 at 00:48 UTC | |
by Anonymous Monk on Feb 23, 2009 at 05:43 UTC |