Skip to content
This repository
Browse code

kill abs and sleep as prefixes

they live on as normal subroutines
  • Loading branch information...
commit 36ccdac5e75b6d0ac1bd503759dde933f0dc64cd 1 parent 261003e
Moritz Lenz authored

Showing 1 changed file with 2 additions and 29 deletions. Show diff stats Hide diff stats

  1. 31  S03-operators.pod
31  S03-operators.pod
Source Rendered
@@ -14,8 +14,8 @@ Synopsis 3: Perl 6 Operators
14 14
 
15 15
     Created: 8 Mar 2004
16 16
 
17  
-    Last Modified: 27 June 2012
18  
-    Version: 254
  17
+    Last Modified: 20 July 2012
  18
+    Version: 255
19 19
 
20 20
 =head1 Overview
21 21
 
@@ -265,7 +265,6 @@ a function call even if that identifier also has a prefix meaning,
265 265
 so you never have to worry about precedence in that case.  Hence:
266 266
 
267 267
     not($x) + 1         # means (not $x) + 1
268  
-    abs($x) + 1         # means (abs $x) + 1
269 268
 
270 269
 =item *
271 270
 
@@ -1150,32 +1149,6 @@ In other words:
1150 1149
 
1151 1150
 is a syntax error (two terms in a row), because C<int> is a type name now.
1152 1151
 
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  
-
1179 1152
 =head2 Nonchaining binary precedence
1180 1153
 
1181 1154
 =over

0 notes on commit 36ccdac

Please sign in to comment.
Something went wrong with that request. Please try again.