Global const variables

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Oct 21 01:25:07 PDT 2014


Minas Mina:

> Aren't pure functions supposed to return the same result every 
> time? If yes, it is correct to not accept it.

But how can main() not be pure? Or, how can't the 'a' array be 
immutable?

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list