[tcljava-dev] [PATCH] Fix for Problem with loading package inside namespace
Brought to you by:
mdejong
From: Shawn B. <sh...@qc...> - 2002-04-09 14:59:19
|
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. Shawn Boyce wrote: > I ran into this problem when loading the java package > inside of a namespace. The java package procedures are > only visible inside of the namespace. e.g. java::call is > not visible globally. It must be prefixed by the namespace name. > > This does not match the Tcl 8.3 behaviour. > > Attached is a test script (and sample package) which exhibits the > problem. > -- Shawn Boyce QCOM, Inc. Quality Software is Our Business http://www.qcominc.com |