Index: doc/Object.man =================================================================== diff -u -rb7cf7b45ced98536a4267b45e772607282dd43b6 -ra6a5d4be56157641a50c3a25a348464591980ac6 --- doc/Object.man (.../Object.man) (revision b7cf7b45ced98536a4267b45e772607282dd43b6) +++ doc/Object.man (.../Object.man) (revision a6a5d4be56157641a50c3a25a348464591980ac6) @@ -558,18 +558,6 @@ [call [arg obj] [method {info object variables}] ...] [para] Description of [method {info object variables}] ... -[call [arg obj] [method {info parameter default}] ...] -[para] Description of [method {info parameter default}] ... - -[call [arg obj] [method {info parameter name}] ...] -[para] Description of [method {info parameter name}] ... - -[call [arg obj] [method {info parameter syntax}] ...] -[para] Description of [method {info parameter syntax}] ... - -[call [arg obj] [method {info parameter type}] ...] -[para] Description of [method {info parameter type}] ... - [call [arg obj] [method {info parent}]] Returns the fully qualified name of the parent object of [arg obj], if @@ -587,14 +575,19 @@ names match [arg pattern] are returned. The [arg pattern] string can contain special matching characters (see [cmd "string match"]). -[call [arg obj] [method {info variable definition}] ...] -[para] Description of [method {info variable definition}] ... +[call [arg obj] [method {info variable}] [arg option] [arg handle]] -[call [arg obj] [method {info variable name}] ...] -[para] Description of [method {info variable name}] ... +Retrieves selected details about a variable represented by the given +[arg handle]. A [arg handle] can be obtained by querying [arg obj] using +[method "info [vset SCOPE] variables"] and [method "info lookup variables"]. -[call [arg obj] [method {info variable parameter}] ...] -[para] Description of [method {info variable parameter}] ... +Valid values for [arg option] are: +[list_begin itemized] +[item] [const name] returns the variable name. +[item] [const parameter] returns a canonical parameter specification +eligible to (re-)define the given variable (e.g., using [method "[vset SCOPE] variable"]) in a new context. +[item] [const definition] returns a canonical representation of the definition command used to create the variable in its current configuration. +[list_end] [call [arg obj] [method {info vars}] [opt [arg pattern]]] Index: library/nx/nx.tcl =================================================================== diff -u -r0e4ebdb092c8158987489b5c26cf11526b2756f5 -ra6a5d4be56157641a50c3a25a348464591980ac6 --- library/nx/nx.tcl (.../nx.tcl) (revision 0e4ebdb092c8158987489b5c26cf11526b2756f5) +++ library/nx/nx.tcl (.../nx.tcl) (revision a6a5d4be56157641a50c3a25a348464591980ac6) @@ -763,9 +763,15 @@ :alias "info parent" ::nsf::methods::object::info::parent :alias "info precedence" ::nsf::methods::object::info::precedence :alias "info vars" ::nsf::methods::object::info::vars - :method "info variable definition" {handle} {return [$handle definition]} - :method "info variable name" {handle} {return [$handle cget -name]} - :method "info variable parameter" {handle} {return [$handle parameter]} + :method "info variable definition" {handle:object,type=::nx::VariableSlot} { + return [$handle definition] + } + :method "info variable name" {handle:object,type=::nx::VariableSlot} { + return [$handle cget -name] + } + :method "info variable parameter" {handle:object,type=::nx::VariableSlot} { + return [$handle parameter] + } } ######################################################################