To help LDC/GDC
Simen Kjaeraas
simen.kjaras at gmail.com
Mon Apr 8 06:40:13 PDT 2013
On 2013-04-08, 13:46, Iain Buclaw wrote:
> Only builtins are pure in the sense of 'C'. Even functions considered
> PUREstrong by the frontend may update an internal state, so the rules
> just
> don't apply. Except for maybe global functions... In any case, the
> only
> benefit you can reap from 'D pure' functions are that they are more
> likely
> to be const-folded / inlined.
What?!?
Please give an example of this. What sort of internal state are we
talking about here?
--
Simen
More information about the Digitalmars-d
mailing list