Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum wrote:
Actually, looking at the code, it seems that it always returns the top stack element if you leave stuff on the stack. So unless you explicitly push a zero before returning, you _do_ need to clean up.
So, just so that I understand the intricacies, suppose I have a:
PIKEFUN int testme(int a, int b, int c) { starts out with a, b, and c on the stack ...processing... ...not popping the stack at all... return; }
Now, the stack will be reduced from [ a, b, c ] to just [ a ] ? I.e. it pops b and c, and then uses a as the return value?