By the way, LDC already does this today (even without optimizations turned on).
My ldc doesn't.I had to cast(immutable) to actually get it to put the data as a constant.
And even then it's still copied to the GC heap.
By the way, LDC already does this today (even without optimizations turned on).
My ldc doesn't.I had to cast(immutable) to actually get it to put the data as a constant.
And even then it's still copied to the GC heap.