Skip to content

Commit 6ffc43a

Browse files
committed
Mention that TWEAK is a new feature
1 parent d9f1d14 commit 6ffc43a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Language/objects.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ example above).
444444
445445
After the C<BUILD> methods have been called, methods named C<TWEAK> are
446446
called, if they exist, again with all the named arguments that were passed
447-
to C<new>.
447+
to C<new>. (C<TWEAK> is a new feature in v6.d / Rakudo 2016.11)
448448
449449
Due to the nature of the default behavior of C<BUILDALL> and custom C<BUILD>
450450
submethods, named arguments to the constructor C<new> derived from C<Mu> can
@@ -527,7 +527,7 @@ class MyClass {
527527
528528
If all you need to do is checking things after the actual construction,
529529
or modify attributes after the object construction, writing a submethod
530-
C<TWEAK> is a good approach:
530+
C<TWEAK> is a good approach (available in v6.d / Rakudo 2016.11):
531531
532532
=begin code
533533
class RectangleWithCachedArea {

0 commit comments

Comments
 (0)