Index: doc/example-scripts/rosetta-unknown-method.tcl =================================================================== diff -u -r21a0283e3b67fb56e9dc782b628db602e21c9ac7 -r1617c4f080e984ae2725d8337f994d5e5fa3d4cc --- doc/example-scripts/rosetta-unknown-method.tcl (.../rosetta-unknown-method.tcl) (revision 21a0283e3b67fb56e9dc782b628db602e21c9ac7) +++ doc/example-scripts/rosetta-unknown-method.tcl (.../rosetta-unknown-method.tcl) (revision 1617c4f080e984ae2725d8337f994d5e5fa3d4cc) @@ -6,13 +6,13 @@ package req nx::test # -# Modelled after the Python version +# Modelled after the Python version: # nx::Class create Example { - :public method foo {} {return "This is foo"} - :public method bar {} {return "This is bar"} + :public method foo {} {return "This is foo."} + :public method bar {} {return "This is bar."} :method unknown {method args} { set result "Tried to handle unknown method '$method'." @@ -28,7 +28,10 @@ # Create an instance of Example ? {set e [Example new]} "::nsf::__#0" -? {$e foo} "This is foo" -? {$e bar} "This is bar" +? {$e foo} "This is foo." + +? {$e bar} "This is bar." + ? {$e grill} "Tried to handle unknown method 'grill'." + ? {$e ding dong} "Tried to handle unknown method 'ding'. It had arguments 'dong'."