Skip to content

Commit 039575e

Browse files
committed
[traps] comment why BUILDALL is a method, not a submethod
1 parent 5cd0d2a commit 039575e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Language/traps.pod

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ C<BUILDALL> mechanism instead:
9898
9999
say A.new(x => 42).x; # 42
100100
101-
101+
(Note that C<BUILDALL> is a method, not a submethod. That's because by
102+
default, there is only one such method per class hierarchy, whereas C<BUILD>
103+
is expclitly called per class. Which also explains why you need the C<nexsame>
104+
inside C<BUIDLALL>, but not inside C<BUILD>).
102105
103106
=head1 Regexes
104107

0 commit comments

Comments
 (0)