View · Search · Index
No registered users in community xowiki
in last 10 minutes

[Xotcl] found bug

From: Kristoffer Lawson <setok_at_fishpool.com>
Date: Mon, 22 Jan 2001 14:13:38 +0200 (EET)

[~] package require XOTcl
0.83
[~] Class Foo
Foo
[~] Foo instproc init {} {
>Bar [self]
>}

[~] Foo instproc destroy {} {
>puts rm
>}

[~] Class Bar
Bar
[~] Bar instproc init {blah} {}

[~] Foo ob
rm
no value given for parameter "blah" to "init"
while evaluating {Foo ob}
[~] Foo uh
rm
Segmentation fault


The "Bar [self]" line was actually a bug in my own code (oops, forgot
"new"), but it's interesting to note that it resulted in a segmentation
fault.


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