Perl 6 Compiler Perl 6 Compiler Status #26

Example of PIR-based builtin stub

=item abs

 our Num multi Num::abs ( Num $x )
 our Num multi Math::Basic::abs ( Num $x )

Absolute Value.

=cut

.sub 'abs'
    .param pmc x
    $P0 = abs x
    .return ($P0)
.end
Copyright © 2007 Patrick Michaud