Skip to content

Commit 4fe1480

Browse files
committed
Respec postcircumfix:<( )> to take arguments directly
This makes it possible to implement it as a set of multi methods.
1 parent 3154497 commit 4fe1480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

S13-overloading.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,13 @@ is better written:
137137
A class may define methods that allow it to respond as if it were a
138138
routine, array, or hash. The long forms are as follows:
139139

140-
method postcircumfix:<( )> ($capture) {...}
140+
method postcircumfix:<( )> (|capture) {...}
141141
method postcircumfix:<[ ]> (**@slice) {...}
142142
method postcircumfix:<{ }> (**@slice) {...}
143143

144144
Those are a bit unwieldy, so you may also use these short forms:
145145

146-
method &.( $capture ) {...}
146+
method &.( |capture ) {...}
147147
method @.[ **@slice ] {...}
148148
method %.{ **@slice } {...}
149149

0 commit comments

Comments
 (0)