Index: library/nx/nx.tcl =================================================================== diff -u -ra9bbc7c710172e6c24bf1c3a787263f9bcaf3384 -r8be635fcabc150f3922951c71d9919d62db09b10 --- library/nx/nx.tcl (.../nx.tcl) (revision a9bbc7c710172e6c24bf1c3a787263f9bcaf3384) +++ library/nx/nx.tcl (.../nx.tcl) (revision 8be635fcabc150f3922951c71d9919d62db09b10) @@ -1598,7 +1598,7 @@ } ObjectParameterSlot public method definition {} { - set options [:getParameterOptions -withMultiplicity true] + set options [:getParameterOptions -withMultiplicity true -forInfo true] if {[info exists :positional]} {lappend options positional} #if {!${:configurable}} {lappend options noconfig} return [:getPropertyDefinitionOptions [:namedParameterSpec -map-private "" ${:name} $options]] @@ -1958,20 +1958,21 @@ {-withMultiplicity 0} {-withSubstdefault 1} {-forObjectParameter 0} + {-forInfo 0} } { set options "" set slotObject "" if {[info exists :type]} { set type ${:type} - if {$type eq "switch" && !$forObjectParameter} {set type boolean} + if {$type eq "switch" && !$forInfo && !$forObjectParameter} {set type boolean} if {$type in {cmd initcmd}} { lappend options $type } elseif {[string match ::* $type]} { lappend options [expr {[::nsf::is metaclass $type] ? "class" : "object"}] type=$type } else { lappend options $type - if {$type ni [list "" \ + if {!$forInfo && $type ni [list "" \ "boolean" "integer" "object" "class" \ "metaclass" "baseclass" "parameter" \ "alnum" "alpha" "ascii" "control" "digit" "double" \ @@ -2074,7 +2075,7 @@ ::nx::VariableSlot public method parameter {} { # This is a shortened "lightweight" version of "getParameterSpec" # returning less (implicit) details. Used e.g. by "info variable parameter" - set options [:getParameterOptions -withMultiplicity true] + set options [:getParameterOptions -withMultiplicity true -forInfo true] set spec [:namedParameterSpec -map-private "" ${:name} $options] if {[info exists :default]} {lappend spec ${:default}} return $spec