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

On Sat, 07 Nov 2009 13:37:33 -0500, Andrei Alexandrescu <seewebsiteforem...@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).

Reply via email to