News for hackers. Stuff that matters.
Re:How to trick C/C++ compilers into generating terrible code? by WalterBright on Saturday October 22, 2011 @04:07PM (#3144212)
"pure" in D causes the compiler to disallow, within that function, writes or reads from global mutable data. This inevitably follows from the principle that if you pass the same arguments to a pure function, you'll get the same result returned.

A pure function is still allowed to allocate memory, though, and throw an exception.

There are no comments on this comment yet.