array initializers

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 11 10:50:14 PDT 2014


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


More information about the Digitalmars-d mailing list