Overview
| Artifact ID: | b394d8429358d2294e16758856762add4f9e998663864f2edd5e1ce8dbea3d7f |
|---|---|
| Ticket: | 16fe1b5807820bb9705b460959f459989ec06404
namespace ensemble command named ":" is mistakenly given the empty string as its name |
| User & Date: | aspect on 2017-11-20 13:31:09 |
Changes
- icomment:
Thanks for the detailed writeup! Following along with that and the patches I have a much better idea, and like the look of what you've done: it does make things more uniform and removes some string/dstring juggling which aids readability. I was put off by the removal of error checking in Tcl_ProcObjCmd that prevents: % namespace eval foo {proc : {} {}} .. but with the unification you have performed, this can be restored in TclGetNamespaceForQualName to the benefit of all creative commands, if indeed that's what we want. I'm still not too keen on enshrining creation of a namespace called ":" in the test suite (even though this was already possible, as you point out), but since it clearly identifies this bug the context is clear and the test can be adjusted in future. One tiny nit: > Tcl_Command TclCreateObjCommandInNs( > Tcl_Command TclNRCreateCommandInNs( should have newlines before the function name. - login: "aspect"
- mimetype: "text/plain"