D and Nim

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 4 21:09:46 PST 2015


"Vlad Levenfeld"  wrote in message 
news:xrizfcicbvbkhtpvugvm at forum.dlang.org...

> Can the compiler automatically make variables immutable if it can prove 
> that they are never changed in some code?

It can apply the same optimizations, yes. 



More information about the Digitalmars-d mailing list