in reply to Re^2: XSUBs with variable input types
in thread XSUBs with variable input types
and then have typedefs in your XS code to map these to your C level types. The perl level object hierarchy you define in the normal way in .pm files with e.g. things like:Foo T_PTROBJ Bar T_PTROBJ Baz T_PTROBJ
(and supposedly Foo.pm does the dynaload)package Bar; ... use base qw(Foo); ...
Again, this last is not necessarily a good idea unless it's ok to call Foo functions on Bar objects for XS methods that exist in Foo but not in Bar (they will get called through inheritance if you apply that method to a Bar object)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: XSUBs with variable input types
by crenz (Priest) on Oct 26, 2004 at 02:00 UTC |