[Xotcl] Re: XOTcl parameter command

Gustaf Neumann neumann at wu-wien.ac.at
Fri Apr 16 19:54:59 CEST 2004


On Friday 16 April 2004 17:19, Attilio Dona` wrote:
> Hy,
>

> 2 Parameter strange behavoir
>
> When using Parameter command I have noticed same strange behavoirs, for
> examples:
>
> case 1:
> Class X -parameter {{-x 100}}
>
> ::X

 Attilo,
 can it be, that your intention was to use 

    Class X -parameter {{x 100}}

 note, the parameter is named "x", not "-x".
 To create an instance, you can use
   
         X create obj1 -x 100

 I would not recommend to name a parameter "-x".

-gustaf

-- 
Univ.Prof. Dr.Gustaf Neumann
Abteilung für Wirtschaftsinformatik
WU-Wien, Augasse 2-6, 1090 Wien



More information about the Xotcl mailing list