A refinement for pure implementation

bearophile bearophileHUGS at lycos.com
Sat Nov 10 08:21:27 PST 2012


Timon Gehr:

> It is strongly pure regardless of potential aliasing in the 
> return value. This is a bug.

This can't be strongly pure:


int[] foo2(int[] a) pure {
     a[0]++;
     return a;
}


Bye,
bearophile


More information about the Digitalmars-d-learn mailing list