Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f48416314175be1979f330985eed90c5a41eb59d
Ticket: 655300ffffffffffffffffffffffffffffffffff
restore Tcl 7 compatibility of Tcl_MakeSafe
User & Date: dgp on 2002-12-17 17:33:00
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The docs for Tcl_MakeSafe say:
    
         Tcl_MakeSafe makes interp ``safe'' by removing all
     non-core
         and  core  unsafe  functionality. Note that if you
    call this
         after adding some extension to an interpreter, all
    traces of
         that extension will be removed from the interpreter.
    
    It's not exactly clear to me what magical package
    unloading power is claimed for Tcl_MakeSafe, but
    it's clear that Tcl_MakeSafe doesn't have it.
    
    Consider:
    
        Tcl_Interp *i = Tcl_CreateInterp();
        Tcl_Eval(i, "package require Tk");
        Tcl_MakeSafe(i);
    
    At this point the Tk commands (both safe and unsafe)
    will still be defined in i.
    
    
    
  4. foundin changed to: "obsolete: 8.4.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "20. [interp]"
  10. title changed to: "Tcl_MakeSafe docs confusing/wrong"
  11. type changed to: "RFE"