opPow, opDollar

Phil Deets pjdeets2 at gmail.com
Sat Nov 7 18:31:46 PST 2009


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.



More information about the Digitalmars-d mailing list