develooper Front page | perl.perl6.internals | Postings from February 2006

Re: Heureka - from the -Ofun department

Thread Previous | Thread Next
From:
Leopold Toetsch
Date:
February 9, 2006 03:09
Subject:
Re: Heureka - from the -Ofun department
Markus Laire wrote:

> Is there a reason why this can't be "turned off" like this:
> convert
>   $N0 = pow 2.0, 5.0
> to
>   $N9999 = 2.0
>   $N0 = pow N9999, 5.0

That's exactly what is executed. Registers are filled with the value of 
the constants and the 'pow' opcode is executed. The little difference is 
that it is executed a bit earlier, that's all.

> Markus Laire

leo



Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About