|
|
|
|
|
by WalterBright
5347 days ago
|
|
"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. |
|