in reply to What does perl stack OPs really do?

Does XPUSHs make a copy

I don't think so. perlxstut and http://perldoc.perl.org/perlguts.html#XSUBs-and-the-Argument-Stack lead me to believe it only copies a reference.

or it has been done automatically by FREETMPS and LEAVE?

http://perldoc.perl.org/perlcall.html#Passing-Parameters says:

Think of these macros as working a bit like { and } in Perl to limit the scope of local (read mortal) variables.

  • Comment on Re: What does perl stack OPs really do?