No registered users in community xowiki
in last 10 minutes
in last 10 minutes
[Xotcl] Re: XOTcl parameter command
From: Gustaf Neumann <neumann_at_wu-wien.ac.at>
Date: Fri, 16 Apr 2004 19:54:59 +0200
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
Date: Fri, 16 Apr 2004 19:54:59 +0200
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