pure functions/methods

Namespace rswhite4 at googlemail.com
Fri Apr 20 01:06:04 PDT 2012


The sense of pure functions isn't clear to me.
What is the advantage of pure functions / methods?
I inform the compiler with "const" that this method does not 
change the current object, and therefore he can optimize (at 
least in C++) this method. How and what optimized the compiler if 
i have "pure" or "const pure" functions / methods?


More information about the Digitalmars-d-learn mailing list