Artifacts Associated With Ticket 693851
Ticket change [f8cb052725] (rid 91606) by fireegl on 2003-02-26 19:15:52:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I want to create a safe interpreter (bar) under the foo namespace.. Here's the sample code and the error it gives: % namespace eval foo {safe::interpCreate ::foo::bar} can't set "S::foo::bar(access_path,0)": parent namespace doesn't exist - foundin initialized to: "obsolete: 8.4.1.1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "fireegl"
- subsystem initialized to: "33. Safe Base"
- title initialized to: "Bug in safe::interpCreate"
- type initialized to: "Bug"
Ticket change [55968b143a] (rid 94161) by nobody on 2003-02-27 04:08:38:
- icomment:
Logged In: NO Based on my preliminary research, changing this proc in "safe.tcl" from this: proc InterpStateName {slave} { return "S$slave" } to this: proc InterpStateName {slave} { regsub -all -- {::} $slave "" slave return "S$slave" } seems to fix the problem. JJM - login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [bd85ae19ca] (rid 101918) by fireegl on 2003-03-05 01:56:50:
- foundin changed to: "obsolete: 8.4.2"
- priority changed to: "6"
Ticket change [a12c67fe60] (rid 109671) by fireegl on 2003-03-05 01:56:51:
- icomment:
Logged In: YES user_id=20221 I personally did it like this.. proc InterpStateName {slave} { return "${slave}S" } It would seem that it would put the variable in the same namespace that I created the interpreter uder this way. - login: "fireegl"
- mimetype: "text/plain"
- username: "fireegl"
- icomment:
Ticket change [b3122a4916] (rid 98450) by fireegl on 2003-07-09 15:07:10:
- foundin changed to: "obsolete: 8.5a0"
- priority changed to: "7 High"
- resolution changed to: "Works For Me"
Ticket change [0b24757a10] (rid 113934) by hobbs on 2003-07-17 05:33:25:
- icomment:
Logged In: YES user_id=72656 I think the correct thing is to improve the docs to note that slaves cannot be in namespaces. There may be other bugs lurking. Or rather, make the creation more ns aware and create the [namespace qual $slaveName] first. If someone can create and test that patch, it would be better.
- login: "hobbs"
- mimetype: "text/plain"
- priority changed to: "5 Medium"
- username: "hobbs"
- icomment:
Ticket change [b25a493b47] (rid 185120) by kjnash on 2020-07-21 17:36:33:
- assignee changed to: "aku"
- closer changed to: "nobody"
- comment changed to:
I want to create a safe interpreter (bar) under the foo namespace.. Here's the sample code and the error it gives: % namespace eval foo {safe::interpCreate ::foo::bar} can't set "S::foo::bar(access_path,0)": parent namespace doesn't exist - icomment:
Fixed in safe-bugfixes-8-6 commit [ba718daa57], but subject to some restrictions because of the need for compatibility with existing code, and the non-standard namespace handling of "interp" (see bug [66c2e8c974]). In the fixed version, the interpreter name "slave" may include namespace separators, but may not have leading or trailing namespace separators, or excess colon characters in namespace separators. The interpreter name is qualified relative to the global namespace ::, not the namespace in which the ::safe::interpCreate or ::safe::interpInit command is evaluated.
- login: "kjnash"
- mimetype: "text/plain"
- severity changed to: "Minor"
Ticket change [600992f350] (rid 190587) by kjnash on 2020-12-31 15:57:04:
- closedate changed to: "2459215.16463341"
- closer changed to: "kjnash"
- login: "kjnash"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"