Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2d56f0228b0b132a24494cf4dd66ee1cd3dd925b
Ticket: 1835292fffffffffffffffffffffffffffffffff
Safe interp problems with namespaces and ensembles
User & Date: dkf on 2012-05-31 16:36:17
Changes

  1. icomment:
    [interp create -safe] currently hides all commands that are considered to default to not being safe, according to a fairly restrictive definition. The [info] command exists, but some of its subcommands are excluded. The [file] command is hidden by default, but some of its subcommands (the safe ones!) are actually present. The vast majority of [info] subcommands are *totally* safe.
    
    [safe::interpCreate] goes further, adding a profile of commands that permits requiring of packages from blessed directories. This entails adding special versions of many commands that are generally unsafe (and I *hate* the complexity of [glob]!)
    
    Re (1), I simply don't care. Or rather, broken old assumptions were always broken; there was simply never a promise to have only the global namespace present by default. Re (4), this is unfortunate but how it is. What we had previously was a horrible mess. It's still pretty messy, but at least we're trying to clean up the problems. THIS WILL BREAK SOME CODE. Can't be helped.
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"