Skip to content

Commit 845097f

Browse files
committed
tell that BUILD don't got access to public accessors
1 parent 84469b4 commit 845097f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/Language/typesystem.pod6

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ The submethod C<BUILD> is called by C<.BUILDALL> defined in L</type/Mu>, which
8484
in turn is called by L<.bless|/type/Mu#method_bless>. It is meant to set
8585
private and public attributes of a class and receives all names attributes
8686
passed into C<.bless>. Since it is called by C<BUILDALL> it is called by the
87-
default constructor L<.new|/type/Mu#method_new> defined in C<Mu>.
87+
default constructor L<.new|/type/Mu#method_new> defined in C<Mu>. Public
88+
accessor methods are not available in C<BUILD> use private attribute notation
89+
instead.
8890
8991
class C {
9092
has $.attr;

0 commit comments

Comments
 (0)