[Xotcl] Re: [Xotcl] more problems with destroy

Kristoffer Lawson setok at fishpool.com
Tue Jan 23 00:17:34 CET 2001


It's amazing how clever you get after you've just sent a vague bug report.
Here's the problem:


[~] package require XOTcl 0.81 
[~] Class Foo 
Foo 
[~] Foo instproc init {} { 
[self] destroy 
safohasofhisa 
} 
[~] Foo ob
destroy failed (probably wrong # args?) or object called after physical
destroy while evaluating {Foo ob}

Ie. the Tcl bytecode should cause an error when it executes init because,
of course, safohasofhisa is not a valid command. This is apparently not
picked up by XOTcl. So I had an error in my callback method further along
the method, but I never received the error but just got that "destroy
failed" thing.

Am I right in believing this has something to do with the previous bug
report I sent with the funny inits and destroys that caused a segfault...?

         -     ---------- = = ---------//--+
         |    /     Kristoffer Lawson      |  www.fishpool.fi|.com
         +-> |    setok at fishpool.com       |  - - --+------
             |-- Fishpool Creations Ltd - /         |
             +-------- = - - - = ---------      /~setok/





More information about the Xotcl mailing list