From: Andreas K. <and...@ac...> - 2006-10-30 20:41:24
|
The TIP has been extended to cover 8.5 features, like {expand}, the dict for/with, etc. We now also have an implementation/patch for 8.5 as well, against the hea= d. Please test. -- Andreas Kupries <andreask@ActiveState.com> Developer @ http://www.ActiveState.com Tel: +1 778-786-1122 > -----Original Message----- > From: tcl...@li... > [mailto:tcl...@li...]On Behalf Of Andreas > Kupries > Sent: Friday, October 20, 2006 9:05 AM > To: tcl...@li... > Subject: Re: [TCLCORE] TIP #280: Add Full Stack Trace > CapabilityWithLocation Introspection > > > > > 2006-10-19 kl. 21.43 skrev Andreas Kupries: > > >>> This is directly taken from the 'interp->scriptFile' structure > > >>> element. > > >>> In other words: Whatever would be delivered by [info source] for = the > > >>> file, if > > >>> called at the same effective location. > > >> > > >> In other words, something not quite as useful as it could have bee= n. > > >> Pity, but I suppose there might be a cost for normalising file nam= es > > >> involved. > > > > > > Its not as bad, Don Porter sent the name of the function to call. S= o > > > yes, there > > > will be a cost, but only at the time the [info frame] is called. > > > > That's not good enough; you need to do it when the file is opened, or > > else the [pwd] might have changed by the time you request the > > information. Consider the following interactive sequence of commands: > > > > % cd sourcedir > > % source mystuff.tcl > > % cd ../testdir > > % source mystuff.tcl > > % runTest > > > > Now which mystuff.tcl did a particular proc come from? > > > > Lars Hellstr=F6m=3D > > > Don Porter pointed this out as well, including that 'source' itself als= o does > normalization, and the result is cached, thus there is no real > additional effort > involved if I do it as well. The newest patches on SourceForge (base4+) > implement this already, i.e. normalization when the frame is constructe= d in > 'source', not by 'info frame'. > > -- > Andreas Kupries <andreask@ActiveState.com> > Developer @ http://www.ActiveState.com > Tel: +1 778-786-1122 > > > > -----------------------------------------------------------------------= -- > Using Tomcat but need to do more? Need to support web services, securit= y? > Get stuff done quickly with pre-integrated technology to make your job = easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Tcl-Core mailing list > Tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-core |