Skip to content

Commit 1b67130

Browse files
authored
Merge pull request #909 from jkramer/patch-1
Clarify that "$.method:" syntax is not supported.
2 parents f8c5be4 + 3965a9c commit 1b67130

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/Language/objects.pod6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ Method names can be resolved at runtime with the C<.""> operator.
265265
Inside a method, the term C<self> is available, which is bound to the
266266
invocant, i.e. the object that the method was called on. C<self> can be
267267
used to call further methods on the invocant. Within methods, something like
268-
C<$.origin> is the same thing as C<self.origin>.
268+
C<$.origin> is the same thing as C<self.origin>, however the colon-syntax for
269+
method arguments is only supported for method calls using self, not the shortcut.
269270
270271
=head2 Private Methods
271272

0 commit comments

Comments
 (0)