[Xotcl] Using uplevel within instprocs from instprocs

Gustaf Neumann neumann at wu-wien.ac.at
Fri Nov 19 02:38:32 CET 2004


> You can see that the one-level iterator succeeds, but the two-level
> iterator can't see the variable defined in the outer loop. You can also
> see that the first time "level" and "callinglevel" are different (as you
> would expect) but the second time they're the same (which looks like it
> might be an XOTcl bug). Any ideas?
>
> (I can work around this for now, of course, but it would be nice to figure
> out what's wrong.)

 Hi Michael, 

 the problem was the [self callinglevel] in the nesting uplevel calls.
 Tcl reports in the nesting case a [info level] of 2 although there 
 are three levels on the stack. xotcl tries to skip filters and mixin-frames
 and it pointed incorrectly to the invocation frame and not to the variable
 frame. I have fixed the problem at least for your example, all regressions
 tests continue to work. If you come up with more such examples, please
 let me know.

 the problem is fixed in the current working release and should be
 available soon.

 best regards
-gustaf neumann

-- 
Univ.Prof. Dr.Gustaf Neumann
Abteilung für Wirtschaftsinformatik und Neue Medien
Wirtschaftsuniversität Wien, Augasse 2-6, 1090 Wien


More information about the Xotcl mailing list