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' %
# 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
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@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@alice.wu-wien.ac.at http://alice.wu-wien.ac.at/mailman/listinfo/xotcl