On Friday, 11 July 2014 at 17:25:47 UTC, Trass3r wrote:
Couldn't the type of the literal be inferred as immutable?Then you could put the data into read-only memory, and maybe even elide the copy to the heap?
By the way, LDC already does this today (even without optimizations turned on).
David
