Overview
| Artifact ID: | 3571c1d433d511761609ba60c4c59c4e37f8860a |
|---|---|
| Ticket: | 420186ffffffffffffffffffffffffffffffffff
namespace import |
| User & Date: | nobody on 2001-04-30 16:02:12 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
Linux SuSE7.1 example: ==> Test1.tcl >>>>>>>>>>>>>>>>>>>>>>>>>>>> #!/bin/sh #\ exec tclsh "$0" lappend auto_path [ pwd ] puts [ ::Args::Test::Main ] <<<<<<<<<<<<<<<<<<<<<<<<<<<< ==> Test2.tcl >>>>>>>>>>>>>>>>>>>>>>>>>>> namespace eval ::Args { namespace export * } proc ::Args::P1 {} { return P1 } namespace eval ::Args::Test { namespace import ::Args::* } proc ::Args::Test::Main {} { return "P1<[P1]>" } <<<<<<<<<<<<<<<<<<<<<<<<<<< ==> tclIndex >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> # Tcl autoload index file, version 2.0 # This file is generated by the "auto_mkindex" command # and sourced to set up indexing information for one or # more commands. Typically each line is a command that # sets an element in the auto_index array, where the # element name is the name of a command and the value is # a script that loads the command. set auto_index(::Args::P1) [list source [file join $dir Test2.tcl]] set auto_index(::Args::Test::Main) [list source [file join $dir Test2.tcl]] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< If you run: ./Test1.tcl you get: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> too many nested calls to Tcl_Eval (infinite loop?) while executing "namespace current" ("uplevel" body line 1) invoked from within "uplevel namespace current" (procedure "auto_import" line 4) invoked from within "namespace import ::Args::*" (in namespace eval "::Args::Test" script line 2) invoked from within "namespace eval ::Args::Test { namespace import ::Args::* }" (file "/alt/home/dev1usr/Project/Compiler2/test/Config/Test/Test2.tcl" line 7) invoked from within "source /alt/home/dev1usr/Project/Compiler2/test/Config/Test/Test2.tcl" ("uplevel" body line 1) invoked from within "uplevel #0 $auto_index($name)" (procedure "auto_import" line 12) invoked from within "namespace import ::Args::*" (in namespace eval "::Args::Test" script line 2) ... <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< - foundin changed to: "obsolete: 8.3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "18. Commands M-Z"
- title changed to: "namespace import"
- type changed to: "Bug"