No registered users in community xowiki
in last 10 minutes
in last 10 minutes
[Xotcl] Re: [Xotcl] more problems with destroy
From: Kristoffer Lawson <setok_at_fishpool.com>
Date: Tue, 23 Jan 2001 01:17:34 +0200 (EET)
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/
Date: Tue, 23 Jan 2001 01:17:34 +0200 (EET)
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/