"be consistent" | |
PerlMonks |
Re^4: sub calls and memory useby LanX (Saint) |
on Nov 16, 2019 at 14:55 UTC ( [id://11108787]=note: print w/replies, xml ) | Need Help?? |
> the call stack still grows since the return address needs to be stored on the call stack. I'm pretty sure that this is not needed because you can't return to the source of a goto. If it's stored nevertheless than it's for vain. But I really doubt this because the docs clearly say that even caller can't tell where the call happened. IMHO goto &sub was never optimized to allow tail call optimizations, it's main purpose is the use in AUTOLOAD.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|