Index: doc/next-migration.html =================================================================== diff -u -r686684910e44fac172d7bcd8440aa23e44c7df5b -rf41ae7e802868efee95b5d5682edfdbbe9ba2f64 --- doc/next-migration.html (.../next-migration.html) (revision 686684910e44fac172d7bcd8440aa23e44c7df5b) +++ doc/next-migration.html (.../next-migration.html) (revision f41ae7e802868efee95b5d5682edfdbbe9ba2f64) @@ -1768,7 +1768,7 @@ the default protection for properties. The defaults can be overwritten also e.g. on a class level.
NX provides means for method hiding via the method modifier
-private. Hidden methods can be invoked only via +my -local
+private. Hidden methods can be invoked only via the -local flag,
which means: "call the specified method defined in the same
class/object as the currently executing method".
# Hiding of methods via "private" # nx::Class create Base { - :private method baz {a b} { expr {$a + $b} } - :public method foo {a b} { my -local baz $a $b } + :private method baz {a b} {expr {$a + $b}} + :public method foo {a b} {: -local baz $a $b} } nx::Class create Sub -superclass Base { - :public method bar {a b} { my -local baz $a $b } - :private method baz {a b} { expr {$a * $b} } + :public method bar {a b} {: -local baz $a $b} + :private method baz {a b} {expr {$a * $b}} :create s1 } @@ -6856,7 +6856,7 @@