From: Alexandre F. <ale...@gm...> - 2007-05-28 22:30:04
|
Hello Mo, On 5/28/07, Mo DeJong <mo...@mo...> wrote: > > You can write a compiler that assumes that a > proc does not deal with linked variables, > but it is trivial to create a test case that breaks this optimization. Yes, if we do nothing actively to deal with upvars. But I was thinking about intercepting those accesses at runtime (see my answer to Donal's). P.S. > If you are looking for test cases for compiler related Tcl issues like > this, I suggest you have a look at the tjcruntime > package in the tcljava CVS: > > http://tcljava.cvs.sourceforge.net/tcljava/tjcruntime/varcache/ Thanks much for the pointer. I'd also appreciate any high-level description of the bytecode VM. Do you have anything like this ? -Alex |