But avoiding heap allocations for array literals is a change that needs to be discussed.

In the meantime I have written a small ER regarding escape analysis for dynamic arrays:
http://d.puremagic.com/issues/show_bug.cgi?id=10242

Bye,
bearophile

Reply via email to