Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 47a8501aae63497bfb8abb0d2ceb7644559e1440086f5a0382c8ec79c142e023
Ticket: 6f327a1bbf2b95330be583963eb1f79e9835665d
namespace path errors in ::oo::InfoObject
User & Date: dkf on 2019-02-02 07:44:02
Changes

  1. closedate changed to: "2458516.82225087"
  2. closer changed to: "dkf"
  3. icomment:
    This is correct behaviour, as the command <code>::oo::InfoObject::namespace</code> exists; it implements <a href="https://www.tcl.tk/man/tcl8.6/TclCmd/info.htm#M75"><code>info object namespace</code></a>, a documented command. (It takes a single argument, checks that it is an object, and returns the path to the object's state namespace.) If you want to use the global <code>namesapce</code> command in that context, you need to use the qualified form, i.e., <code>::namespace</code>; this sort of thing is why the exact implementation of how TclOO isn't fully documented and why poking around inside requires care (because you have to be far more exacting than you think at first glance).
    <p>
    If what you were trying to do worked in earlier versions (<code>info object namespace</code> has been there for a long time now!) then that was actually (probably) a command resolution bug that was corrected. Not quite sure what bug.
    
  4. login: "dkf"
  5. mimetype: "text/html"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"