Overview
| Artifact ID: | 07dbcd22bbe91a986deb5329e64ca366b7db6c1afe8945c08000462d531d0880 |
|---|---|
| Ticket: | 16fe1b5807820bb9705b460959f459989ec06404
namespace ensemble command named ":" is mistakenly given the empty string as its name |
| User & Date: | pooryorick on 2019-02-07 15:47:09 |
Changes
- closer changed to: "nobody"
- comment changed to:
<code>info level 0</code> simply returns all the words in the command associated with a level. It was not intended as a mechanism for resolving the command to a fully-qualified name, and it generally does not: <code><verbatim> namespace eval n1 {} { proc p args { puts [info level 0] } namespace export * namespace ensemble create p n1 } namespace eval n2 {} { namespace path ::n1 p n2 } </verbatim></code> The fact that the namespace ensemble command resolution routines ever rewrote the command name was incidental, and not intended to be part of the public interface. In order to fix [16fe1b5807] the ensemble subcommand lookup routines no longer make this artifact visible to <code>info level</code>. This is not a bug. Furthermore, <code>info level 0</code> is now more consistent. It no longer rewrites the command provided by the caller. - icomment:
<code>info level 0</code> simply returns all the words in the command associated with a level. It was not intended as a mechanism for resolving the command to a fully-qualified name, and it generally does not: <code><verbatim> namespace eval n1 {} { proc p args { puts [info level 0] } namespace export * namespace ensemble create p n1 } namespace eval n2 {} { namespace path ::n1 p n2 } </verbatim></code> The fact that the namespace ensemble command resolution routines ever rewrote the command name was incidental, and not intended to be part of the public interface. In order to fix [16fe1b5807] the ensemble subcommand lookup routines no longer make this artifact visible to <code>info level</code>. This is not a bug. Furthermore, <code>info level 0</code> is now more consistent: It now always returns the command as provided by the caller, instead of just doing that in the common case. - login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Invalid"
- status changed to: "Pending"