Index: library/nx/nx.tcl =================================================================== diff -u -r371cc41c32db500cb1d5bcab139ef65299ef4d6c -r7bcc1f1a88422c472cbeb238c1d7d1a337361bc8 --- library/nx/nx.tcl (.../nx.tcl) (revision 371cc41c32db500cb1d5bcab139ef65299ef4d6c) +++ library/nx/nx.tcl (.../nx.tcl) (revision 7bcc1f1a88422c472cbeb238c1d7d1a337361bc8) @@ -2238,6 +2238,11 @@ if {![info exists trace] && [info exists :trace] && ${:trace} ne "none"} { set trace ${:trace} } + + if {$parameterOptions ne "" && "substdefault" in [split $parameterOptions ,]} { + set defaultValue [subst $defaultValue] + } + if {$initblock eq "" && !$configurable && !$incremental && $accessor eq "none" && ![info exists trace]} { # @@ -2257,7 +2262,7 @@ # we rely here that the nsf::is error message expresses the implementation limits set noptions {} foreach o [split $parameterOptions ,] { - if {$o ne "noconfig"} {lappend noptions $o} + if {$o ni {noconfig substdefault}} {lappend noptions $o} } set parameterOptions [join $noptions ,]