opPow, opDollar

Phil Deets pjdeets2 at gmail.com
Sat Nov 7 18:41:20 PST 2009


On Sat, 07 Nov 2009 21:31:46 -0500, Phil Deets <pjdeets2 at gmail.com> wrote:

> On Sat, 07 Nov 2009 13:37:33 -0500, Andrei Alexandrescu  
> <SeeWebsiteForEmail at erdani.org> wrote:
>>
>> In order for everyone to air an informed opinion, a related question  
>> is: will loop fusion be allowed with function calls?
>>
>> Loop fusion currently only works with operators, and adding ^^ would  
>> allow:
>>
>> a[] = b[] ^^ 3;
>>
>> But with pow you can't do that:
>>
>> a[] = pow(b[], 3);
>>
>>
>> Andrei
>>
>
> If a function is marked pure, I don't see any reason why this would be a  
> bad idea.

Make that pure and nothrow (and possibly safe).



More information about the Digitalmars-d mailing list