Overview
| Artifact ID: | a176dce0c252da03f09954bc6105bc0178919c3d |
|---|---|
| Ticket: | 458892ffffffffffffffffffffffffffffffffff
Legal but irregular names ?? |
| User & Date: | mic42 on 2003-01-21 06:11:25 |
Changes
- icomment:
Logged In: YES user_id=302287 Namespace names have similar irregularities: % namespace eval ::foo::bar: {set a 1; namespace current} ::foo::bar: % namespace eval ::foo::bar: {namespace eval baz {set a 1; namespace current} ::foo::bar:::baz % namespace children ::foo::bar: ::foo::bar:::baz % set ::foo::bar:::baz::a can't read "::foo::bar:::baz::a": no such variable % namespace eval ::foo::bar: { set baz::a} 1 The man page is unclear about this, it states that : in names are ignored, but they are not. % namespace eval ::foo::bar:baz {namespace current} ::foo::bar:baz So, introspection does work for peculiar namespaces, but using the results of this introspection does not always work as expected. - login: "mic42"
- mimetype: "text/plain"
- username: "mic42"