Artifacts Associated With Ticket 1577282
Ticket change [2ffe5e3e96] (rid 93167) by msofer on 2006-10-14 17:28:58:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
[namespace unknown] should be able to follow [namespace path] and [namespace unknown] lookup behaviour. After application of [Patch 1577278], adding a line iPtr->lookupNsPtr = ensemblePtr->nsPtr; just before the call to Tcl_EvalObjv in NamespaceImplementationCmd enables this behaviour. If the registered ensemble unknownProc returns a FQ command as first element of the list, the resolution is still global. If the name is not FQ, the resolution will follow whatever rules the ensemble's namespace has set in place.
- 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: "msofer"
- subsystem initialized to: "21. [namespace]"
- title initialized to: "[ensemble unknown] should use ns path"
- type initialized to: "RFE"
Ticket change [fc284096e4] (rid 108180) by msofer on 2006-10-15 01:16:15:
- icomment:
Logged In: YES user_id=148712 Patch for docs and tests attached
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [2fdf3359ae] (rid 93144) by msofer on 2006-10-15 01:16:16:
- icomment:
File Added - 198173: eunknown.patch
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "eunknown.patch" [9baefd2c87] (rid 111170) by msofer on 2006-10-15 01:16:16.
Ticket change [4d89c0db4f] (rid 127070) by msofer on 2006-10-16 19:49:40:
- title changed to: "TIP 283: [ensemble unknown] should use ns path"
Ticket change [7791bb00a8] (rid 89798) by msofer on 2006-10-26 08:13:12:
- icomment:
File Added - 200065: tip283.patch Logged In: YES user_id=148712 Updated patch: code, docs, (incomplete) tests
- login: "msofer"
- mimetype: "text/plain"
- title changed to: "TIP 283: ensemble's command resolution"
- username: "msofer"
- icomment:
Add attachment "tip283.patch" [6930bd699d] (rid 103203) by msofer on 2006-10-26 08:13:12.
Ticket change [6fa09f1082] (rid 100345) by msofer on 2006-11-02 03:40:27:
- icomment:
Logged In: YES user_id=148712 Updated patch that works in HEAD. It breaks test cmdAH-24.12 in a weird manner - by breaking autoloading of [clock scan]. The reason is exposed below; the problem with clock can be fixed easily, but the wider problem may be more important. *** DANGER *** As the "fix" for [info level] in HEAD was reverted (Bug 1577492, previously called "let [info level] know ensemble rewrites"), this new feature breaks nother usual idiom. 'uplevel 1 [info level 0]' is NOT GUARANTEED to call the present proc again This is because: (a) 'namespace ensemble' does not push a new frame (b) 'namespace ensemble' calls by simple name (non qualified) (c) 'info level 0' reflects only the actual call, ie, a simple name As an illustration, with this patch we get: % namespace eval a { variable ct 0 namespace ensemble create -map {x scan} proc scan args { variable ct if {$ct} { puts YES return } incr ct uplevel 1 [info level 0] } } % a x wrong # args: should be "scan string format ?varName varName ...?" - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [b0deb1e6cc] (rid 98054) by msofer on 2006-11-02 03:40:28:
- icomment:
File Added - 201011: tip283-1.patch
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "tip283-1.patch" [93f207052a] (rid 105890) by msofer on 2006-11-02 03:40:28.
Ticket change [c31f8fef1e] (rid 111605) by dkf on 2009-07-13 19:35:57:
- icomment:
The NRE-enabled command dispatch function allows control over the command resolution context. Might be worth looking at whether this FRQ can be dealt with through that route.
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "7 High"
- username: "dkf"
- icomment:
Ticket change [6608e05308] (rid 223700) by jan.nijtmans on 2024-03-22 15:55:31:
- closer changed to: "nobody"
- comment changed to:
[namespace unknown] should be able to follow [namespace path] and [namespace unknown] lookup behaviour. After application of [Patch 1577278], adding a line iPtr->lookupNsPtr = ensemblePtr->nsPtr; just before the call to Tcl_EvalObjv in NamespaceImplementationCmd enables this behaviour. If the registered ensemble unknownProc returns a FQ command as first element of the list, the resolution is still global. If the name is not FQ, the resolution will follow whatever rules the ensemble's namespace has set in place.
- icomment:
Ping. Found this ooooooold ticket. Related to [910d67a229]?
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- severity changed to: "Minor"