[Xotcl] RE: [Xotcl] Probable bug: no method calls with "next" & init

Rick Hedin rhedin at aquifer.geology.uiuc.edu
Mon Feb 5 22:22:02 CET 2001


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






More information about the Xotcl mailing list