in reply to Re^3: Overload '+=' with XSub
in thread Overload '+=' with XSub

And if you don't have the time to dig through perlapi, perl tries not to rely on the C stack for manipulation of variables, returning by pushing onto the return stack is the prefered method, assuming you've first set the stack up correctly. While I haven't played with overloading and C I believe the principle is the same.

Replies are listed 'Best First'.
Re^5: Overload '+=' with XSub
by syphilis (Archbishop) on Mar 29, 2007 at 12:39 UTC
    returning by pushing onto the return stack is the prefered method

    I proberly nearly almost sort of know something like that :-)

    But I'm still puzzled as to how "pushing onto the return stack" equates to "implicitly returning from the return stack". In my Inline::C experience it (quite frankly) doesn't work that way :-)

    (Btw ... totally inconsequential ... but what's with the "I am Spartacus" stuff ? You forget your password ?)

    Cheers,
    Rob