Hi Mattia,

Mattia Barbon wrote:
Everything in wxPerl assumes that the C++ class name matches the Perl name...

Well, it's good to know at least it was a pretty solid wall I was ramming my head against ^_^;

sv_derived_from checks inheritance at the Perl level.

Well that's how it seemed to me! Given that, the perlapi documentation is pretty damn misleading:

   "sv_derived_from
                  Returns a boolean indicating whether the SV is
   derived from the specified class _at the C level_.  To check
   derivation at the Perl level,
                  call "isa()" as a normal Perl method."


I was planning to submit a bug about the lack of documentation of $arg, $var, $type, $ntype (although I suppose only the last two are less than self-explanatory). I'll add that misleading function description to my complaints.

What do I need to do to use the package name I want in Perl?

Wrap the class with the C++ name and subclass it in Perl with the name you want?
Heh, that's what Eric suggested :-p It didn't work straight away when I tried it though (I forget the error), so I went back to looking for the 'bug' assuming there must've been a more elegant way to do what I wanted. Oh well!

Thanks for clearing that up,

-- Ryan

Reply via email to