namespace ensemble created over TclOO object results in disappearing namespace
Closed / Rejected319573f89fc745ad61df3b5d43b7145796c1c8a3Created 9 years agoUpdated 9 years ago
Descriptionwiki2017-07-04 12:42:08
creating a namespace ensemble over a TclOO object associated with the namespace
causes the namespace to disappear:
namespace eval [info object namespace ::oo::object] [
list my createWithNamespace ::obj1 ::obj1
]
namespace eval ::obj1 {
namespace ensemble create
}
namespace parent ::obj1 ;# -> namespace "::obj1" not found
aspectplain2017-07-05 13:05:16
in the example, [namespace ensemble create] destroys the object to replace it with the ensemble command. The object takes the namespace with it.
pooryorick Ticket [319573f89f]: 3 changes
[History diff]2017-11-10 00:43:43
pooryorick Closed ticket [319573f89f].
[History diff]2018-01-01 17:34:41
Log in (anonymous is fine) to add a comment.