immutable ref foreach on values

bearophile bearophileHUGS at lycos.com
Fri Jun 22 05:16:56 PDT 2012


Tobias Pankrath:

> I think it's good. In this special case, the compiler can see 
> that you can't change array behind his back. That seems not to 
> be true in general.

But aren't int implicitly castable to immutable?

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list