Re: sub introspection: filename and line

2006-02-08 Thread Jonathan Worthington
"jerry gay" <[EMAIL PROTECTED]> wrote: while debugging partcl, leo asked will for some source comments to understand where the generated code came from. i thought it should be possible to walk the chain from the code emitter, and print the calling sub's filename and line number in PIR. walking t

sub introspection: filename and line

2006-02-08 Thread jerry gay
while debugging partcl, leo asked will for some source comments to understand where the generated code came from. i thought it should be possible to walk the chain from the code emitter, and print the calling sub's filename and line number in PIR. walking the call chain is possible using a ParrotI