Hi Kristoffer.
This behavior seems correct. You are trying to pass three arguments:
1. myArg 2. -whatever 3. niceSystem
to one formal parameter:
arg
We could send one argument:
next {myArg -whatever niceSystem}
or use the special properties of the args keyword:
Foo instproc init {args} { . . .
Am I looking at this right?
Regards,
Rick
-----Original Message----- From: xotcl-admin@alice.wu-wien.ac.at [mailto:xotcl-admin@alice.wu-wien.ac.at]On Behalf Of Kristoffer Lawson Sent: Monday, February 05, 2001 2:59 PM To: XOTcl developers Subject: [Xotcl] Probable bug: no method calls with "next" & init
[~] Class Foo [~] Foo instproc init {arg} { puts "arg: $arg" } [~] Foo instproc whatever {system} { puts "sys: $system" } [~] Class Bar -superclass Foo [~] Bar instproc init {} { next myArg -whatever niceSystem } [~] Bar ob called "next" with too many arguments
- ---------- = = ---------//--+ | / Kristoffer Lawson | www.fishpool.fi|.com +-> | setok@fishpool.com | - - --+------ |-- Fishpool Creations Ltd - / | +-------- = - - - = --------- /~setok/
_______________________________________________ Xotcl mailing list - Xotcl@wi.wu-wien.ac.at http://wi.wu-wien.ac.at/mailman/listinfo/xotcl