Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5eee35cfdd1632d6be6aa12dbfd9e93e2c72ec42
Ticket: 1824958fffffffffffffffffffffffffffffffff
self.export problem (?)
User & Date: dkf on 2007-11-09 18:02:25
Changes

  1. icomment:
    Logged In: YES 
    user_id=79902
    Originator: NO
    
    OK, there's a few problems here.
    
    Firstly, in your issue below the problem is that the default constructor for oo::object does absolutely nothing at all, and ignores all arguments. Use a subclass of oo::object to define your own behaviour, perhaps like this:
      oo::class create myObject {
         constructor {script} {::oo::define [self] $script}
      }
    
    Secondly, the main point of this bug report *is* a bug. The bug is that the "export record" for the undefined object method "WEA" is being interpreted as a real method when generating the error message. Oops!
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. priority changed to: "8"
  5. username: "dkf"