Skip to content

Commit 187e15b

Browse files
committed
document that forward goto requires quotes
1 parent d91760b commit 187e15b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

S04-control.pod

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Synopsis 4: Blocks and Statements
1313

1414
Created: 19 Aug 2004
1515

16-
Last Modified: 10 Aug 2011
17-
Version: 111
16+
Last Modified: 23 Aug 2011
17+
Version: 112
1818

1919
This document summarizes Apocalypse 4, which covers the block and
2020
statement syntax of Perl.
@@ -1232,6 +1232,11 @@ binding (not to mention list generation in the case of C<for>).
12321232
can be emulated for a bare block, so that doesn't fall under the
12331233
prohibition on bypassing formal binding.)
12341234

1235+
Because it is possible to go to a label that is after the operation,
1236+
and because Perl 6 does one-pass passing, any C<goto> to a label
1237+
that has not been yet declared (or is declared outside the outward
1238+
lexical scope of the C<goto>) must enclose the label in quotes.
1239+
12351240
=head1 Exceptions
12361241

12371242
As in Perl 5, many built-in functions simply return an undefined value

0 commit comments

Comments
 (0)