From: SourceForge.net <no...@so...> - 2003-03-04 18:46:58
|
Bugs item #693851, was opened at 2003-02-26 13:15 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=693851&group_id=10894 Category: 32. Safe Base >Group: 8.4.2 Status: Open Resolution: None >Priority: 6 Submitted By: Philip Moore (fireegl) Assigned to: Jeffrey Hobbs (hobbs) Summary: Bug in safe::interpCreate Initial Comment: 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 ---------------------------------------------------------------------- >Comment By: Philip Moore (fireegl) Date: 2003-03-04 12:56 Message: 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. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-02-26 15:08 Message: 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=693851&group_id=10894 |