Re: [tcljava-dev] [PATCH] Fix for Problem with loading package inside namespace
Brought to you by:
mdejong
From: Mo D. <su...@ba...> - 2002-04-12 21:03:37
|
On Tue, 09 Apr 2002 10:59:13 -0400 Shawn Boyce <sh...@qc...> wrote: > I took a look at the Tcl sources and Jacl sources. > The Tcl code invokes Tcl_GlobalEval to evaluate package > scripts. The Jacl code invokes Interp.eval with the GLOBAL_ONLY > flag. However this flag is essentially ignored down inside of eval/eval2 > To get the same type of functionality as Tcl_GlobalEval, the > EVAL_GLOBAL flag must be set. This fixes the problem. > > The one-line patch is attached. Ugh, you found quite a nasty bug there. I poked around and found a couple of additional places where this error shows up. I just checked in a patch that fixes them all. Thanks for looking into this. Mo |