Optimizing Immutable and Purity

Bill Baxter wbaxter at gmail.com
Mon Dec 22 19:17:59 PST 2008

On Tue, Dec 23, 2008 at 12:10 PM, bearophile <bearophileHUGS at lycos.com> wrote:
> Walter Bright:
>> I didn't know gcc had pure functions. It doesn't have immutable data. If
>> it does optimize with it, you can try it and see!
> It seems to work:
> [...]
> As you can see now there's just one call to bar.
> Bye,
> bearophile

Does GCC complain if you do something clearly impure inside bar?


More information about the Digitalmars-d mailing list