On Wed, May 26, 2004 at 09:13:10AM -0500, Scott T. Hildreth wrote:
>        Expecting a single value is not quite the same as knowing that
>        there will be one. If someone modified Adder to return a list and
>        we didn't check for that possibility and take appropriate action
>        the Perl stack would end up in an inconsistent state. That is
>        something you really don't want to happen ever.
> 
> ...so applying it to your question, I would say you want to check the 
>    return value of call_pv and make sure you are getting the right num
>    of values "pushed" on the stack.  According to the docs, the returned
>    values will be pushed onto the stack for you, you don't need to set
>    the stack size.  

I don't know how many values will be pushed onto the stack, so I can't
check.  There may be no returned values on the stack, as well.

What I was wondering about was my use of SPAGAIN -- as that resets my
local copy of the stack pointer (or so I'm told by perlcall).  But, how
do I know that the values pushed on the stack by the secondary subroutine
get returned correctly to the calling Perl-space code?

-- 
Bill Moseley
[EMAIL PROTECTED]

Reply via email to