|
2004-06-29
| ||
| 16:41 | • Closed ticket [981735ffff]: ::safe::interpCreate confused by global vars... ... artifact: d7beb61fab user: dkf | |
| 03:51 | • New ticket [981735ffff]. artifact: c265562be4 user: mistachkin | |
::safe::interpCreate confused by global vars...
Closed / Duplicate981735ffffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-06-29 03:51:37
The following script does NOT work in both the Tcl 8.4.x
branch and HEAD release:
set temp(0) "testing"
::safe::interpCreate "myNewInt"
The safe base appears to be using global variables in the
master interpreter. This behavior does not appear to be
documented anywhere.
-------------------------
The error is:
can't set "temp": variable is array
while executing
"set temp [::tcl::OptKeyRegister {
{-accessPath -list {} "access path for the slave"}
{-noStatics "prevent loading of statically linked
pkgs"}
{-sta..."
(in namespace eval "::safe" script line 13)
invoked from within
"namespace eval ::safe {
# Exported API:
namespace export interpCreate interpInit
interpConfigure interpDelete \
interpAddToAccessPath in..."
(file "tcl/library/safe.tcl" line 28)
invoked from within
"source tcl/library/safe.tcl"
(in namespace eval "::" script line 1)
invoked from within
"namespace eval :: $auto_index($name)"
(procedure "auto_load" line 13)
invoked from within
"auto_load $name [uplevel 1 {::namespace current}]"
(autoloading "::safe::interpCreate")
invoked from within
"::safe::interpCreate "myNewInt""
dkfplain2004-06-29 16:41:21
Logged In: YES user_id=79902 Dup of 981733
Log in (anonymous is fine) to add a comment.