Skip to content

Commit a6770ed

Browse files
committed
clarify interactions with "class" syntax
Methods under the "class" syntax would also be callable using this syntax. Lexical methods currently don't exist, but they would be callable with this syntax if they were added.
1 parent a31dd22 commit a6770ed

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ppcs/ppc0033-ampersand-method-calls.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ current package's `AUTOLOAD` would be called. If `AUTOLOAD` does not exist, an
4848
error would be issued. The call would ignore prototypes, just as traditional
4949
method calls and `&subroutine()` calls do.
5050

51+
Methods defined using the `class` syntax would also be callable using this
52+
syntax.
53+
5154
## Backwards Compatibility
5255

5356
The syntax `->&word` is currently a syntax error, so no backwards
@@ -106,8 +109,9 @@ None currently.
106109

107110
## Future Scope
108111

109-
This syntax would also make sense to use for private method calls in the
110-
`class` syntax.
112+
Lexical methods (`my method foo`) are not currently supported under the
113+
`class` syntax. If they were added, `->&method` would be the preferred way to
114+
call them.
111115

112116
## Rejected Ideas
113117

0 commit comments

Comments
 (0)