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

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

From: Arthur Schreiber <schreiber.arthur_at_googlemail.com>
Date: Thu, 21 Jun 2012 10:22:37 +0200

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