[Xotcl] A question about parameter and default values.
Shishir Ramam
sramam at gmail.com
Sat May 26 18:47:26 CEST 2007
I'm using ActiveState's 8.4 distribution on Windows XP, and am unable to
explain the behaviour in the example below.
Shouldn't '-exact' be allowed as the default initializer for match? It seems
to have something to do with the
leading '-' since removing it seems to create the class Foo without issue.
Any help much appreciated.
thanks,
-shishir
C:\Tools\Tcl\lib\xotcl1.5.3>tclsh
% package require XOTcl
1.5.3
% namespace import xotcl::*
% Class Foo -parameter {{match -exact}}
during '::Foo parameter'
% set errorInfo
during '::Foo parameter'
::Foo ::xotcl::Object->configure
::xotcl::Class ::xotcl::Class->create
::xotcl::Class ::xotcl::Class->unknown
invoked from within
"Class Foo -parameter {{match -exact}}"
Changing -exact to exact, the error is resolved.
% Class Foo -parameter {{match exact}}
::Foo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://alice.wu-wien.ac.at/pipermail/xotcl/attachments/20070526/aaa446ff/attachment.html
More information about the Xotcl
mailing list