DMD 1.029 and 2.013 releases (automatic pure detection)

Bruno Medeiros brunodomedeiros+spam at com.gmail
Sun Apr 27 14:11:33 PDT 2008


Bruno Medeiros wrote:
> 
> And a new FAQ question was added:
> "Can't a sufficiently smart compiler figure out that a function is pure 
> automatically?"
> http://www.digitalmars.com/d/2.0/faq.html#pure
> 

This FAQ entry was made in response to the suggestion someone made that 
pure be automatically detected by the compiler.

But I think the suggestion made wasn't to remove the pure attribute, and 
make the compiler detect *all* pure functions. One would still be able 
to use the pure function parameter. That would invalidate points 1 and 3.
As for 2: well, just don't do automatic pure detection for virtual 
functions (unless they are final).

-- 
Bruno Medeiros - Software Developer, MSc. in CS/E graduate
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D


More information about the Digitalmars-d-announce mailing list