Is This a Bug

Timon Gehr timon.gehr at gmx.ch
Wed Oct 26 02:01:57 PDT 2011


On 10/26/2011 09:15 AM, Gor Gyolchanyan wrote:
> I see. But is there any practical advantage of a function being pure?
> I mean, besides an optimization hint for the compiler, of course.
>

It is very useful for reasoning about code, because a pure function will 
always behave the same when called with the same arguments.


More information about the Digitalmars-d mailing list