Artifacts Associated With Ticket 2000423fff
Ticket change [39d399624d] (rid 112456) by dgp on 2008-06-23 03:05:55:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
[namespace code] constructs a script using the [namespace inscope] command to do its work. [namespace inscope] is difficult to understand. I wonder whether the new [apply] command has enough power to serve as the primitive on which an equivalent, but different implementation of [namespace code] could be written.
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "21. [namespace]"
- title initialized to: "re-implement [namespace code]"
- type initialized to: "RFE"
Ticket change [142648715e] (rid 124343) by dkf on 2008-06-23 15:46:51:
- icomment:
Logged In: YES user_id=79902 Originator: NO Experimentation indicates that the following is equivalent to 'namespace inscope', apart from the magical horror in [unknown]. apply {{ns prefix args} {uplevel 1 [list namespace eval $ns $prefix $args]}} Don't know if this means that it is something you'd actually want to use though. That's not the most elegant code I've written. - login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [b00ae39676] (rid 97919) by tallniel on 2008-06-30 23:25:08:
- icomment:
Logged In: YES user_id=102050 Originator: NO My guess is that the following should be roughly equivalent to [namespace code], but would want to be a lot more sure of that "roughly": proc ns_code args { list apply [list {} $args [uplevel 1 namespace current]] } Was that what you were considering, DGP? - login: "tallniel"
- mimetype: "text/plain"
- username: "tallniel"
- icomment:
Ticket change [995c8e756e] (rid 110780) by msofer on 2008-08-06 21:57:23:
- icomment:
Logged In: YES user_id=148712 Originator: NO The ugly hack in init.tcl: we should just REMOVE IT NOW! Let Itcl add that to ::unknown in its own loader, Tcl works fine without that. See Itcl's patch #2040295 at https://sourceforge.net/tracker/index.php?func=detail&aid=2040295&group_id=13244&atid=313244
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [a2ae036f30] (rid 109938) by msofer on 2008-08-07 02:24:53:
- icomment:
Logged In: YES user_id=148712 Originator: NO Ugly hack in init.tcl now gone
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [3e10ca6290] (rid 172070) by dgp on 2019-06-03 16:15:52:
- closer changed to: "nobody"
- comment changed to:
[namespace code] constructs a script using the [namespace inscope] command to do its work. [namespace inscope] is difficult to understand. I wonder whether the new [apply] command has enough power to serve as the primitive on which an equivalent, but different implementation of [namespace code] could be written.
- icomment:
Now that TIP 284 is getting consideration, another look at this may also be in order?
- login: "dgp"
- mimetype: "text/plain"
- severity changed to: "Minor"