Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[S05] document ** backcompat mode for colomon and masak
  • Loading branch information
sorear committed May 27, 2012
1 parent 084e814 commit 71cb5d2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions S05-regex.pod
Expand Up @@ -1009,6 +1009,16 @@ It is illegal to return a list, so this easy mistake fails:
The closure form is always considered procedural, so the item it is
modifying is never considered part of the longest token.

For backwards compatibility with previous versions of Perl 6, if the token
following ** is not a closure or literal integer, it is interpreted as +%
with a warning:

/ x ** y / # same as / x+ % y /
/ x ** $y / # same as / x [$y x]* /

No check is made to see if $y contains an integer or range value. This
compatibility feature is not guaranteed to exist forever.

=item *

Negative range values are allowed, but only when modifying a reversible
Expand Down

0 comments on commit 71cb5d2

Please sign in to comment.