[Xotcl] found bug

Kristoffer Lawson setok at fishpool.com
Mon Jan 22 13:13:38 CET 2001


[~] 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/





More information about the Xotcl mailing list