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

Gustaf Neumann Gustaf.Neumann at wu-wien.ac.at
Mon Feb 5 22:28:18 CET 2001


>>>>> "RH" == Rick Hedin <rhedin at aquifer.geology.uiuc.edu> writes:

RH> Hi Kristoffer.
RH> This behavior seems correct.  You are trying to pass three arguments:
RH>     1. myArg  2. -whatever  3. niceSystem
RH> to one formal parameter:
RH>     arg
RH> We could send one argument:
RH>     next {myArg -whatever niceSystem}
 
  in the general case, you will prefer
 
        next [list myArg -whatever niceSystem]
 
  to get the tcl substitions correct.
 
RH> or use the special properties of the args keyword:
RH>     Foo instproc init {args} {  . . .
 
RH> Am I looking at this right?
 
  technically yes.
 
  Somehow, i have the feeling, that Kristoffer intended a class to the
  method "whatever". Why not use:                    

     Class Bar -superclass Foo
     Bar instproc init {} {
       next myArg
       [self] whatever niceSystem
     }
 
 -gustaf   




More information about the Xotcl mailing list