Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2018-01-01
17:34 • Closed ticket [319573f89f]: namespace ensemble created over TclOO object results... artifact: fb61518311 user: pooryorick
2017-11-10
00:43 • Ticket [319573f89f]: 3 changes artifact: f77cbeccc9 user: pooryorick
2017-07-05
13:05 • Ticket [319573f89f]: 3 changes artifact: 4485598b48 user: aspect
2017-07-04
12:42 • New ticket [319573f89f]. artifact: edcb312a7d user: pooryorick

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.