Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a031e0766f50088013325d95ce9ed57c338aa506
Ticket: 1824958fffffffffffffffffffffffffffffffff
self.export problem (?)
User & Date: jima00 on 2007-11-09 17:32:30
Changes

  1. icomment:
    Logged In: YES 
    user_id=1928331
    Originator: YES
    
    I think it might be related with the observation things go different having used create or define upon objects in TclOO.
    
    Here is an example of what I mean:
    
    package require TclOO
    ::oo::object create ::OBJ {
     method FOO {args} {puts {*}$args}
    }
    puts "Methods: [info object methods ::OBJ -all]"    ;# <---- GIVES "Methods: "
    ::oo::define ::OBJ {
     method BAR {args} {puts {*}$args}
    }
    puts "Methods: [info object methods ::OBJ -all]"    ;# <---- GIVES "Methods: BAR"
    
    
    Is this as intended to be?
    Should I always use "new" and then ::oo::define everything apart?
    
    Thanks in advance.
    
    
  2. login: "jima00"
  3. mimetype: "text/plain"
  4. username: "jima00"