Skip to content

Commit 36ccdac

Browse files
committed
kill abs and sleep as prefixes
they live on as normal subroutines
1 parent 261003e commit 36ccdac

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed

S03-operators.pod

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Synopsis 3: Perl 6 Operators
1414

1515
Created: 8 Mar 2004
1616

17-
Last Modified: 27 June 2012
18-
Version: 254
17+
Last Modified: 20 July 2012
18+
Version: 255
1919

2020
=head1 Overview
2121

@@ -265,7 +265,6 @@ a function call even if that identifier also has a prefix meaning,
265265
so you never have to worry about precedence in that case. Hence:
266266

267267
not($x) + 1 # means (not $x) + 1
268-
abs($x) + 1 # means (abs $x) + 1
269268

270269
=item *
271270

@@ -1150,32 +1149,6 @@ In other words:
11501149

11511150
is a syntax error (two terms in a row), because C<int> is a type name now.
11521151

1153-
=over
1154-
1155-
=item *
1156-
1157-
C<< prefix:<int> >>
1158-
1159-
Deprecated, use the C<Int()> coercion or the C<floor> function.
1160-
1161-
=item *
1162-
1163-
C<< prefix:<sleep> >>
1164-
1165-
Coerces to an appropriate C<Real> type, then suspends the current
1166-
thread of execution for the specified number of seconds, which
1167-
may be fractional. Remember that although a C<Rat> is capable
1168-
of attosecond precision, your computer is probably not capable of
1169-
attosecond accuracy.
1170-
1171-
=item *
1172-
1173-
C<< prefix:<abs> >>
1174-
1175-
Returns the absolute value of the specified argument.
1176-
1177-
=back
1178-
11791152
=head2 Nonchaining binary precedence
11801153

11811154
=over

0 commit comments

Comments
 (0)