Artifacts Associated With Ticket 3605447fffffffff
Ticket change [26ec7ff550] (rid 88430) by dgp on 2013-02-20 17:36:20:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
% namespace export % namespace export x % namespace export x % namespace export -clear y % namespace export y % namespace export z % namespace export y z % namespace export -clear % namespace export y z The last round is the surprise. The failure of the -clear option to do any clearing unless new patterns come in at the same time is not what I expected, and not the interpretation I would make of the documented behavior. It sure appears that there's no way to return a namespace's export list to a list of no patterns. The behavior of namespace export -clear $newExportPatternList is also fraught with complication of the Do Nothing Gracefully variety. If this isn't a bug, it ought to be. Ick.
- foundin initialized to: "current: 8.6.0"
- 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: "[namespace export -clear] surprise"
- type initialized to: "Bug"
Ticket change [0e70591e55] (rid 94617) by dgp on 2013-02-21 00:41:15:
- icomment:
That last example ought to be namespace export -clear {*}$newExportPatternList - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [75947b5f87] (rid 105414) by dgp on 2013-02-21 00:45:58:
- icomment:
To some extent this is the badness of the Tcl_Export() interface leaking through. Double Ick.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [7786f084af] (rid 89790) by dgp on 2013-02-21 00:56:10:
- icomment:
Heh. The way to get back to any empty export list is, apparently: % namespace export x % namespace export x % catch {namespace export -clear bad::data} 1 % namespace export % Who wants to make the case this is a sensible intentional interface? Bleah. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [38f5aeb46c] (rid 112306) by dgp on 2013-02-21 02:19:30:
- icomment:
See bug-3605447 branch for something more sensible. Test suite does not care about the change.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "dgp"
- icomment:
Ticket change [cab06a2aac] (rid 95401) by dkf on 2013-02-21 04:08:04:
- icomment:
[catch {namespace export -clear bad::data}]??? That's... that's gotta change. If you're doing this, you might consider adding "--" support. (Yes, it makes it more of a change, with more risk, but it's likely to reduce the actual WTF content.) - login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [2d91d7ba02] (rid 119087) by dgp on 2013-02-21 10:20:49:
- assignee changed to: "dgp"
- closedate changed to: "2013-02-21T03:20:49"
- closer changed to: "dgp"
- icomment:
allow_comments - 1 fix merged on all active branches
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"