[Xotcl] Workaround for "value of parameter could be non-positional argument"

Arthur Schreiber schreiber.arthur at googlemail.com
Thu Jun 21 10:22:37 CEST 2012


Hello Gustaf,

what is the recommended way to work around the warning that is put out by
code like this:

nx::Class create Test {
    :property value:required
}

set value "-h"
Test new -value $value
# => Warning: value '-h' of parameter '-expected' could be a non-positional
argument during:
#      ::nsf::__#0l configure -expected -h


Kind regards,
Arthur


More information about the Xotcl mailing list