Luke
These are $HL features. I can imagine that Perl6 will stuff the
C<caller>, the subroutine's name and more into P0's properties, if e.g.
debugging is on, or these items are referenced.
For one level the return continuation in P1 is the caller. But you can't
assume to be able to follow up the chain, because PRegs might be saved
away and may contain different stuff.
> Luke
leo
Exactly. If a language want to expose any sort of introspective
information, it should do so.
Having said that, a standard mechanism to do so--perhaps a sub
pushing the passed-in continuation onto the control stack as a
special type of entry, or pushing its name on the stack (or both)
wouldn't be out of order so those languages that want to do this can
do so in a standard way.
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
d...@sidhe.org have teddy bears and even
teddy bears get drunk