On Wed, Nov 23, 2005 at 10:49:18PM +0100, Leopold Toetsch wrote:
> On Nov 23, 2005, at 19:08, Chip Salzenberg wrote:
> >You keep confusing static and dynamic call information.
> 
> Not confusing actually, maybe abusing the static sub structure by 
> adding a dynamic field 'ctx' - yes.

Point taken - the code may be confused, but that doesn't mean you are.
:-)  But that kind of abuse is just going to end in tears.

> Chip:
> >  Subs don't have callers.
> >  Call frames have callers.
> 
> And callframes aren't PMCs (because we don't have weak pointers) 
> therefore an introspection of :outer can only return the 'Sub' of outer 
> but not actually the real call frame aka the context ...
> 
> The introspection $frame.get_lexpad (pdd20) can't be implemented w/o 
> that currently.

Thanks for the reminder, I'd forgotten to put that IRC discussion into
the doc.  I just committed r10202, which includes:

+For example, to get the immediate caller's LexPad, use:
+
+    $P0 = getinterp
+    $P1 = $P0["lexpad"; 1]

-- 
Chip Salzenberg <[EMAIL PROTECTED]>

Reply via email to