in reply to Re: Procedural and object oriented interface in Perl/XS
in thread Procedural and object oriented interface in Perl/XS

Well the difference is: the method call gives the instance of the object as the only argument, the function call a number (For cos: $instance->cos; or MyModule::Math::cos(42);) and thats what I try to do with sv_isobject(). But this dows not work and I don't see my error.

Replies are listed 'Best First'.
Re^3: Procedural and object oriented interface in Perl/XS
by dave_the_m (Monsignor) on Oct 23, 2014 at 13:47 UTC
    But this dows not work
    Can you be much more specific please. In which way does it not work? Under what circumstances does it not work? Have you single-stepped that XS function under a debuggger? At what point does the behaviour deviate from what you expect? Etc.

    Dave.