Index: doc/Class.man =================================================================== diff -u -N -rf817725e88751339be58485d579241a0b97e15b9 -r84277b252f25481e4c5966f35729869a1d337a83 --- doc/Class.man (.../Class.man) (revision f817725e88751339be58485d579241a0b97e15b9) +++ doc/Class.man (.../Class.man) (revision 84277b252f25481e4c5966f35729869a1d337a83) @@ -1,4 +1,4 @@ -[comment {-*- Tcl -*- nx::Class manpage}] +[comment {-*- Tcl -*- nx::Class man page}] [include version.inc] [manpage_begin nx::Class 3 [vset VERSION]] Index: doc/Object.man =================================================================== diff -u -N -r8024df76962dab57646dc206e07a7ae66e7990ad -r84277b252f25481e4c5966f35729869a1d337a83 --- doc/Object.man (.../Object.man) (revision 8024df76962dab57646dc206e07a7ae66e7990ad) +++ doc/Object.man (.../Object.man) (revision 84277b252f25481e4c5966f35729869a1d337a83) @@ -1,4 +1,4 @@ -[comment {-*- Tcl -*- nx::Object manpage}] +[comment {-*- Tcl -*- nx::Object man page}] [include version.inc] [manpage_begin nx::Object 3 [vset VERSION]] Index: doc/configure.man =================================================================== diff -u -N -rbf42a9bc9fffff123de76674ddabb3125eb1faa0 -r84277b252f25481e4c5966f35729869a1d337a83 --- doc/configure.man (.../configure.man) (revision bf42a9bc9fffff123de76674ddabb3125eb1faa0) +++ doc/configure.man (.../configure.man) (revision 84277b252f25481e4c5966f35729869a1d337a83) @@ -1,4 +1,4 @@ -[comment {-*- Tcl -*- nx::configure manpage}] +[comment {-*- Tcl -*- nx::configure man page}] [include version.inc] [manpage_begin nx::configure 3 [vset VERSION]] Index: doc/current.man =================================================================== diff -u -N -rbf42a9bc9fffff123de76674ddabb3125eb1faa0 -r84277b252f25481e4c5966f35729869a1d337a83 --- doc/current.man (.../current.man) (revision bf42a9bc9fffff123de76674ddabb3125eb1faa0) +++ doc/current.man (.../current.man) (revision 84277b252f25481e4c5966f35729869a1d337a83) @@ -1,4 +1,4 @@ -[comment {-*- Tcl -*- nx::current manpage}] +[comment {-*- Tcl -*- nx::current man page}] [include version.inc] [manpage_begin nx::current 3 [vset VERSION]] Index: doc/example-scripts/tk-spread.tcl =================================================================== diff -u -N -ra963e8896fd07c345ccfa034cbd043344edbf083 -r84277b252f25481e4c5966f35729869a1d337a83 --- doc/example-scripts/tk-spread.tcl (.../tk-spread.tcl) (revision a963e8896fd07c345ccfa034cbd043344edbf083) +++ doc/example-scripts/tk-spread.tcl (.../tk-spread.tcl) (revision 84277b252f25481e4c5966f35729869a1d337a83) @@ -34,7 +34,7 @@ :require trait nx::trait::callback # - # The method "cell" hides the internal respresentation and sets a + # The method "cell" hides the internal representation and sets a # cell to a value. # :method cell {pair value} { Index: doc/next-tutorial/next-tutorial.txt =================================================================== diff -u -N -rdc9c6c5d195536bb28cedadf6cf490f6d338b7e4 -r84277b252f25481e4c5966f35729869a1d337a83 --- doc/next-tutorial/next-tutorial.txt (.../next-tutorial.txt) (revision dc9c6c5d195536bb28cedadf6cf490f6d338b7e4) +++ doc/next-tutorial/next-tutorial.txt (.../next-tutorial.txt) (revision 84277b252f25481e4c5966f35729869a1d337a83) @@ -1764,13 +1764,14 @@ ==== Value Constraints -NX provides value constraints for all kind of parameters. By -specifying value constraints, a developer can restrict the permissible -values for a parameter and document the expected values in the source -code. Value checking in NX is conditional, it can be turned on or off -in general, or on a per-usage level (more about this later). The same -mechanisms can be used not only for input value checking, but as well -for return value checking (we will address this point as well later). +NX provides value constraints for all kind of parameters and for +return values. By specifying value constraints, a developer can +restrict the permissible values and document the expected values in +the source code. Value checking in NX is optional, it can be turned on +or off in general, or on a per-usage level (more about this +later). The same mechanisms can be used not only for input value +checking, but as well for return value checking (we will address this +point as well later). ===== Built-in Value Constraints @@ -1814,7 +1815,16 @@ # :public object method bar {{-x:integer 10} {-verbose:boolean false}} { puts "x=$x verbose=$verbose" + return $x } + + # + # Value constraints for return value + # + :public object method baz {} -returns integer { + return 123 + } + } # The following invocation raises an exception, since the Index: doc/next.man =================================================================== diff -u -N -rbf42a9bc9fffff123de76674ddabb3125eb1faa0 -r84277b252f25481e4c5966f35729869a1d337a83 --- doc/next.man (.../next.man) (revision bf42a9bc9fffff123de76674ddabb3125eb1faa0) +++ doc/next.man (.../next.man) (revision 84277b252f25481e4c5966f35729869a1d337a83) @@ -1,4 +1,4 @@ -[comment {-*- Tcl -*- nx::next manpage}] +[comment {-*- Tcl -*- nx::next man page}] [include version.inc] [manpage_begin nx::next 3 [vset VERSION]] Index: doc/nxsh.man =================================================================== diff -u -N -rbe71d48c36f290fc3d9ac56bf29281cff57f5d53 -r84277b252f25481e4c5966f35729869a1d337a83 --- doc/nxsh.man (.../nxsh.man) (revision be71d48c36f290fc3d9ac56bf29281cff57f5d53) +++ doc/nxsh.man (.../nxsh.man) (revision 84277b252f25481e4c5966f35729869a1d337a83) @@ -1,4 +1,4 @@ -[comment {-*- Tcl -*- nxsh manpage}] +[comment {-*- Tcl -*- nxsh man page}] [include version.inc] [manpage_begin nxsh 1 [vset VERSION]] Index: doc/nxwish.man =================================================================== diff -u -N -rbe71d48c36f290fc3d9ac56bf29281cff57f5d53 -r84277b252f25481e4c5966f35729869a1d337a83 --- doc/nxwish.man (.../nxwish.man) (revision be71d48c36f290fc3d9ac56bf29281cff57f5d53) +++ doc/nxwish.man (.../nxwish.man) (revision 84277b252f25481e4c5966f35729869a1d337a83) @@ -1,4 +1,4 @@ -[comment {-*- Tcl -*- nxwish manpage}] +[comment {-*- Tcl -*- nxwish man page}] [include version.inc] [manpage_begin nxwish 1 [vset VERSION]] Index: doc/xotclsh.man =================================================================== diff -u -N -rbe71d48c36f290fc3d9ac56bf29281cff57f5d53 -r84277b252f25481e4c5966f35729869a1d337a83 --- doc/xotclsh.man (.../xotclsh.man) (revision be71d48c36f290fc3d9ac56bf29281cff57f5d53) +++ doc/xotclsh.man (.../xotclsh.man) (revision 84277b252f25481e4c5966f35729869a1d337a83) @@ -1,4 +1,4 @@ -[comment {-*- Tcl -*- xotclsh manpage}] +[comment {-*- Tcl -*- xotclsh man page}] [include version.inc] [manpage_begin xotclsh 1 [vset VERSION]] Index: doc/xowish.man =================================================================== diff -u -N -rbe71d48c36f290fc3d9ac56bf29281cff57f5d53 -r84277b252f25481e4c5966f35729869a1d337a83 --- doc/xowish.man (.../xowish.man) (revision be71d48c36f290fc3d9ac56bf29281cff57f5d53) +++ doc/xowish.man (.../xowish.man) (revision 84277b252f25481e4c5966f35729869a1d337a83) @@ -1,4 +1,4 @@ -[comment {-*- Tcl -*- xowish manpage}] +[comment {-*- Tcl -*- xowish man page}] [include version.inc] [manpage_begin xowish 1 [vset VERSION]]