Index: doc/next-migration.html =================================================================== diff -u -r09fdaef530d334f8ea065db60b20a644c671e74d -raaced4467cdf9fd24e428c1a319b355fb038412d --- doc/next-migration.html (.../next-migration.html) (revision 09fdaef530d334f8ea065db60b20a644c671e74d) +++ doc/next-migration.html (.../next-migration.html) (revision aaced4467cdf9fd24e428c1a319b355fb038412d) @@ -1041,7 +1041,6 @@ # # method # forward -# setter # alias # attribute # @@ -1122,14 +1121,12 @@ http://www.gnu.org/software/src-highlite -->
# Define setter and getter methods -Class create C { - :setter p1 ?value_constraint? - :class-object setter p2 ?value_constraint? -} +Class create C +::nsf::setter C p1 +::nsf::setter C -per-object p2 -Object create o { - :setter p3 ?value_constraint? -}+Object create o +::nsf::setter o p3
# Method modifiers orthogonal over all kinds of methods # # Method-definition-methods: -# method, forward, setter, alias, attribute +# method, forward, alias, attribute Class create C { :/method-definiton-method/ ... @@ -1256,7 +1253,7 @@ ::nx::configure defaultMethodCallProtection true|false can be used to set the default call protection for scripted methods, forwarder and aliases, while ::nx::configure defaultAttributeCallProtection true|false can set the -default for attributes and setters.
# Set instance variable of object obj to a value via -# resolver (preferred way: define setter method on obj) +# resolver (preferred way: define attribute on obj) /obj/ eval [list set /:varName/ ?value?]