Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
kill abs and sleep as prefixes
they live on as normal subroutines
  • Loading branch information
moritz committed Jul 20, 2012
1 parent 261003e commit 36ccdac
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions S03-operators.pod
Expand Up @@ -14,8 +14,8 @@ Synopsis 3: Perl 6 Operators

Created: 8 Mar 2004

Last Modified: 27 June 2012
Version: 254
Last Modified: 20 July 2012
Version: 255

=head1 Overview

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

not($x) + 1 # means (not $x) + 1
abs($x) + 1 # means (abs $x) + 1

=item *

Expand Down Expand Up @@ -1150,32 +1149,6 @@ In other words:

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

=over

=item *

C<< prefix:<int> >>

Deprecated, use the C<Int()> coercion or the C<floor> function.

=item *

C<< prefix:<sleep> >>

Coerces to an appropriate C<Real> type, then suspends the current
thread of execution for the specified number of seconds, which
may be fractional. Remember that although a C<Rat> is capable
of attosecond precision, your computer is probably not capable of
attosecond accuracy.

=item *

C<< prefix:<abs> >>

Returns the absolute value of the specified argument.

=back

=head2 Nonchaining binary precedence

=over
Expand Down

0 comments on commit 36ccdac

Please sign in to comment.