Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c265562be4429b1564156683e3ca75370ed55539
Ticket: 981735ffffffffffffffffffffffffffffffffff
::safe::interpCreate confused by global vars...
User & Date: mistachkin on 2004-06-29 03:51:37
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    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""
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "mistachkin"
  9. subsystem changed to: "33. Safe Base"
  10. title changed to: "::safe::interpCreate confused by global vars..."
  11. type changed to: "Bug"