No registered users in community xowiki
in last 10 minutes
in last 10 minutes
[Xotcl] RE: [Xotcl] Probable bug: no method calls with "next" & init
From: Rick Hedin <rhedin_at_aquifer.geology.uiuc.edu>
Date: Mon, 5 Feb 2001 15:22:02 -0600
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_at_alice.wu-wien.ac.at
[mailto:xotcl-admin_at_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_at_fishpool.com | - - --+------
|-- Fishpool Creations Ltd - / |
+-------- = - - - = --------- /~setok/
_______________________________________________
Xotcl mailing list - Xotcl_at_wi.wu-wien.ac.at
http://wi.wu-wien.ac.at/mailman/listinfo/xotcl
Date: Mon, 5 Feb 2001 15:22:02 -0600
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_at_alice.wu-wien.ac.at
[mailto:xotcl-admin_at_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_at_fishpool.com | - - --+------
|-- Fishpool Creations Ltd - / |
+-------- = - - - = --------- /~setok/
_______________________________________________
Xotcl mailing list - Xotcl_at_wi.wu-wien.ac.at
http://wi.wu-wien.ac.at/mailman/listinfo/xotcl