Index: doc/Object.man =================================================================== diff -u -ref17499c6911ca6b6712384f6793acc1d7cb856e -rf0f4c4be4d21ba578d3be3e9559710bde3f17ac2 --- doc/Object.man (.../Object.man) (revision ef17499c6911ca6b6712384f6793acc1d7cb856e) +++ doc/Object.man (.../Object.man) (revision f0f4c4be4d21ba578d3be3e9559710bde3f17ac2) @@ -581,32 +581,17 @@ [list_end] -[cmd_def public] - -[list_begin definitions] - -[call [arg obj] [method {require namespace}] ...] -[para] Description of [method {require namespace}] ... - -[list_end] - [cmd_def require] [list_begin definitions] +[call [arg obj] [method require] [method namespace]] -[call [arg obj] [method {require object method}] ...] -[para] Description of [method {require object method}] ... +Create a Tcl namespace named after the object [arg obj]. All object +variables become available as namespace variables. -[call [arg obj] [method {require private object method}] ...] -[para] Description of [method {require private object method}] ... +[include require.man.inc] -[call [arg obj] [method {require protected object method}] ...] -[para] Description of [method {require protected object method}] ... - -[call [arg obj] [method {require public object method}] ...] -[para] Description of [method {require public object method}] ... - [list_end] [cmd_def property] Index: doc/require.man.inc =================================================================== diff -u --- doc/require.man.inc (revision 0) +++ doc/require.man.inc (revision f0f4c4be4d21ba578d3be3e9559710bde3f17ac2) @@ -0,0 +1,10 @@ +[comment {-*- tcl -*- manpage fragment for forward method, shared by nx::Object and nx::Class}] + +[keywords "call protection"] + +[call [arg [vset CMD]] [opt "public | protected | private"] [method require] [const [vset SCOPE]] [method method] [arg methodName]] + +Attempts to register a method definition made available using [cmd ::nsf::method::provide] under +the name [arg methodName] with the object [arg obj] . The registered +method is subjected to default [term "call protection"] ([const protected]), if +not set explicitly.