Index: doc/Object.man =================================================================== diff -u -ra49636e3ad85800404038174f377b061489312e9 -rf8e79022a6358a42c082e1637a14bddaa3798e73 --- doc/Object.man (.../Object.man) (revision a49636e3ad85800404038174f377b061489312e9) +++ doc/Object.man (.../Object.man) (revision f8e79022a6358a42c082e1637a14bddaa3798e73) @@ -37,9 +37,8 @@ [list_begin definitions] +[call [cmd nx::Object] [method create] [arg objectName] [opt "[option -object-mixin] [arg mixinSpec]"] [opt "[option -class] [arg newClassName]"] [opt "[option -object-filter] [arg filterSpec]"] [opt [arg initBlock]]] -[call [cmd nx::Object] [method create] [arg objectName] [opt "-object-mixin [arg mixinSpec]"] [opt "-class [arg newClassName]"] [opt "-object-filter [arg filterSpec]"] [opt [arg initBlock]]] - [para] To create a direct instance of [cmd nx::Object] having an explicit @@ -48,7 +47,7 @@ an instance of [cmd nx::Class]. This way, singelton objects can be created, for example. -[call [cmd nx::Object] [method new] [opt "-object-mixin [arg mixinSpec]"] [opt "-class [arg newClassName]"] [opt "-object-filter [arg filterSpec]"] [opt [arg initBlock]]] +[call [cmd nx::Object] [method new] [opt "[option -object-mixin] [arg mixinSpec]"] [opt "[option -class] [arg newClassName]"] [opt "[option -object-filter] [arg filterSpec]"] [opt [arg initBlock]]] To create a direct instance of [cmd nx::Object] having an automatically assigned, implict object name, use [method new] on [cmd nx::Object]. Note @@ -182,19 +181,19 @@ [para] -[option "-withnew [arg trueFalse]"] requests the automatic rescoping of +[option "-withnew"] requests the automatic rescoping of objects created using [method new] so that they become nested into the receiver object [arg obj], rather than being created in the default namespace for autonamed objects (i.e., ::nsf). If turned off, autonamed objects do not become children of [arg obj]. [para] -The parent object to be used instead of [arg obj] can be specified -using [option "-object [arg objectName]"]. If this explicitly set parent +The parent object [arg objectName] to be used instead of [arg obj] can be specified +using [option "-object"]. If this explicitly set parent object does not exist prior to calling [method contains], it will be created on the fly as a direct instance of [cmd nx::Object]. Alternatively, -using [option "-class [arg className]"], a class [arg className] other +using [option "-class"], a class [arg className] other than [cmd nx::Object] for the on-the-fly creation of [arg objectName] can be provided. @@ -373,14 +372,14 @@ modified using [method configure], their current value can be queried using [method cget]. -[call [arg obj] [method info] [method has] [method mixin] | [method namespace] | [method type] [opt ...]] +[call [arg obj] [method info] [method has] [method mixin] | [method namespace] | [method type] [opt "[arg arg] ..."]] [list_begin definitions] -[def "[arg obj] [method info] [method has] [method mixin] [arg className]"] +[def "[arg obj] [method "info method has mixin"] [arg className]"] Verifies whether [arg obj] has a given [cmd nx::Class] [arg className] registered as a [term "mixin class"] (returns: [const true]) or not (returns: [const false]). -[def "[arg obj] [method info] [method has] [method namespace]"] +[def "[arg obj] [method "info has namespace"]"] Checks whether the object has a companion Tcl namespace (returns: [const true]) or not (returns: [const false]). The namespace could @@ -596,7 +595,7 @@ [list_begin definitions] -[call [arg obj] [const object] [method property] [opt "-accessor public|private|protected"] [opt "-configurable [arg trueFalse]"] [opt -incremental] [opt "-class [arg className]"] [opt -nocomplain] [arg spec] [opt [arg initBlock]]] +[call [arg obj] [const object] [method property] [opt "[option -accessor] public | protected | private"] [opt "[option -configurable] [arg trueFalse]"] [opt [option -incremental]] [opt "[option -class] [arg className]"] [opt [option -nocomplain]] [arg spec] [opt [arg initBlock]]] [include property.man.inc] @@ -627,7 +626,7 @@ [cmd_def alias] [list_begin definitions] -[call [arg obj] [opt "public | private | protected"] [const object] [cmd alias] [arg methodName] [opt "-returns [arg valueChecker]"] [opt "-frame object | method"] [arg cmdName]] +[call [arg obj] [opt "public | private | protected"] [const object] [cmd alias] [arg methodName] [opt "[option -returns] [arg valueChecker]"] [opt "[option -frame] object | method"] [arg cmdName]] [include alias.man.inc] Index: doc/forward.man.inc =================================================================== diff -u -ra49636e3ad85800404038174f377b061489312e9 -rf8e79022a6358a42c082e1637a14bddaa3798e73 --- doc/forward.man.inc (.../forward.man.inc) (revision a49636e3ad85800404038174f377b061489312e9) +++ doc/forward.man.inc (.../forward.man.inc) (revision f8e79022a6358a42c082e1637a14bddaa3798e73) @@ -4,7 +4,7 @@ [keywords "forward method"] [keywords "debugging level"] -[call [arg [vset CMD]] [opt "public | protected | private"] [const [vset SCOPE]] [method forward] [arg methodName] [opt [option "-prefix [arg prefixName]"]] [opt [option "-frame object"]] [opt [option "-returns [arg valueChecker]"]] [opt [option "-verbose"]] [arg target] [opt "[arg arg] ..."]] +[call [arg [vset CMD]] [opt "public | protected | private"] [const [vset SCOPE]] [method forward] [arg methodName] [opt "[option -prefix] [arg prefixName]"] [opt "[option -frame] [arg object]"] [opt "[option -returns] [arg valueChecker]"] [opt [option -verbose]] [arg target] [opt "[arg arg] ..."]] Define a [term "forward method"] for the given [vset SCOPE]. The definition of a [term "forward method"] registers a predefined, but @@ -89,7 +89,7 @@ can be set using [option "-prefix"]. This prefix is prepended automatically to the argument following [arg target] (i.e., a second argument), if present. If missing, [option "-prefix"] has no -effect on the [term "forward method"] call. +effect on the [term "forward method"] call. [para] To inspect and to debug the conversions performed by the above Index: doc/method.man.inc =================================================================== diff -u -ref17499c6911ca6b6712384f6793acc1d7cb856e -rf8e79022a6358a42c082e1637a14bddaa3798e73 --- doc/method.man.inc (.../method.man.inc) (revision ef17499c6911ca6b6712384f6793acc1d7cb856e) +++ doc/method.man.inc (.../method.man.inc) (revision f8e79022a6358a42c082e1637a14bddaa3798e73) @@ -1,6 +1,6 @@ [comment {-*- tcl -*- manpage fragment for method method, shared by nx::Object and nx::Class}] -[call [arg [vset CMD]] [opt "public | protected | private"] [const [vset SCOPE]] [method method] [arg name] [arg parameters] [opt [option "-checkalways"]] [opt [option "-returns [arg valueChecker]"]] [arg body]] +[call [arg [vset CMD]] [opt "public | protected | private"] [const [vset SCOPE]] [method method] [arg name] [arg parameters] [opt [option "-checkalways"]] [opt "[option -returns] [arg valueChecker]"] [arg body]] [keywords "value checker"] [keywords "colon-prefix notation"]