Skip to content
Tcl Source Code History Of Ticket 2116892fffffffff
Login

History Of Ticket 2116892fffffffff

Artifacts Associated With Ticket 2116892fffffffff

  1. Ticket change [a09569ec36] (rid 96836) by dgp on 2008-09-17 21:57:55:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      The set of ::safe::* commands gets
      auto-loaded on first use.  I suppose
      they're part of the built-in Tcl command
      set.
      
      
      But they're partitioned over in their
      own nice namespace, as if they were a
      package.  Why not turn them into one?
      Call it "safe" so the package name matches
      the namespace name.
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "33. Safe Base"
    11. title initialized to: "Make SafeBase an actual package"
    12. type initialized to: "RFE"
  2. Ticket change [12e728d747] (rid 185048) by kjnash on 2020-07-20 23:22:57:

    1. assignee changed to: "aku"
    2. closer changed to: "nobody"
    3. comment changed to:
      The set of ::safe::* commands gets
      auto-loaded on first use.  I suppose
      they're part of the built-in Tcl command
      set.
      
      
      But they're partitioned over in their
      own nice namespace, as if they were a
      package.  Why not turn them into one?
      Call it "safe" so the package name matches
      the namespace name.
      
    4. icomment:
      Good idea.  I hope it can be done at the earliest possible release, subject to rules on breaking compatibility with existing code.  I suppose this will mean Tcl 9.0.
      
    5. login: "kjnash"
    6. mimetype: "text/plain"
    7. severity changed to: "Minor"
    8. username: "[email protected]"
  3. Ticket change [7f429e502e] (rid 185185) by dgp on 2020-07-23 19:16:40:

    1. icomment:
      
      Make this one of those "conversation with past self" videos.
      
      I suspect the trouble is the chicken & egg problem.
      
      A safe interpreter, whether created by a Tcl_MakeSafe() call,
      or by [interp crate -safe], does not have any exposed commands
      that can interact with the file system.  In particular a safe
      interp cannot [source] or [load] into place any components that
      could make up a "safe" package until the functions of the "safe"
      package are already in place to enable safe access to the filesystem.
      
      We would have a circular dependency if we needed to [package require safe]
      before we had the capacities in place that would allow us 
      to [package require safe].
      
      If there's an escape from this dilemma other than the one we have
      (it's in the built-in language command set), let me know.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  4. Ticket change [5335c65e56] (rid 185244) by kjnash on 2020-07-25 14:01:54:

    1. icomment:
      I agree with your past self!  I think it's about how the file lib/tcl8.6/safe.tcl is loaded in the master - no action is needed in the slave because the master adds the necessary aliases there.  Currently the ::safe::* commands are listed in lib/tcl8.6/tclIndex or equivalent.  The file lib/tcl8.6/safe.tcl could equally well be listed in a pkgIndex.tcl file (or converted to a module), which would need the master interpreter to evaluate "package require safe" before using any ::safe::* commands.
      
      The Safe Base commands are a natural package because they are self-contained in the ::safe namespace.
      
    2. login: "kjnash"
    3. mimetype: "text/plain"
  5. Ticket change [25630fff18] (rid 185272) by dgp on 2020-07-27 14:32:10:

    1. icomment:
      
      You should know better than me honestly. I never use the facility.
      
    2. login: "dgp"
    3. mimetype: "text/plain"