Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 64eb0191222d94b595dcf01b819c20b5477669ec
Ticket: f97d4ee02082971e4b86a853c18c093fd0b2a45d
quadratic cost of namespace teardown
User & Date: dkf on 2015-07-24 13:58:55
Changes

  1. icomment:
    For an example of why you can get into trouble with callbacks, try this script:
    <pre>
    oo::class create Foo {
        variable i
        constructor x {set i [incr x]}
        destructor {Foo create ::abc::$i $i}
    }
    namespace eval abc {Foo create 1 1}
    namespace delete abc
    </pre>
    Just don't expect it to return soon!
    <p>
    We ought to do something to stop commands (or namespaces, or sub-namespaces) from being created in namespaces that are being deleted. At least then we'd get a sensible failure.
    
  2. login: "dkf"
  3. mimetype: "text/html"
  4. username: "dkf"