View · Search · Index
No registered users in community xowiki
in last 10 minutes

XOTcl/NX mailing list by class creating

From: Gustaf Neumann <neumann_at_wu-wien.ac.at>
Date: Mon, 13 Oct 2003 09:41:18 +0200

On Sunday 12 October 2003 11:29, Artur Trzewik wrote:
> Hi!
>
> I have noticed some problems by passing parameters by class creating
>
> Example
>
> % Class A -parameter par
>
> ::A
>
> % A create a -par -e
> Can't find result of parameter par during '::a par'

 Artur, check out Changelog and documentation,
 this was changed early this year. Use [list] to
 help configure:

     A create a [list -par -e]

 best regards
-gustaf neumann

=======================================
2003-01-09 Gustaf.Neumann_at_wu-wien.ac.at
        * configure methods can be placed into a list to avoid
          ambiguity of "-". This character is used as a metachar to
          denote method names, but it has to be used in values as well.
          Example:
             Class Book -parameter {title author}
             Book b1 -title "--the title--" -author a.b.c
          has to be written as
             Book b1 [list -title "--the title--"] -author a.b.c
          Note, that XOTcl allows us to provide multiple arguments
          to methods called via configure. Note, that xotcl
          supports via this method calling methods with 0,
          1 or more arguments.

=======================================
> %
>
> # This one was OK.
>
> % A create a
>
> ::a
>
> % a par -e
> -e
>
> It seems it is imposible to pass any parameter value beginning with '-' by
> creating some instance.
> Is there any workaround for this problem?
>
> Artur Trzewik
>
>
>
> _______________________________________________
> Xotcl mailing list - Xotcl_at_alice.wu-wien.ac.at
> http://alice.wu-wien.ac.at/mailman/listinfo/xotcl

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