On 2/3/12 2:28 PM, Steve Schveighoffer wrote:
What I am saying is, if we go with the lowering of:
[a:b, c:d] => AALiteral([a,c], [b,d]);
I would like to have this not needlessly allocate the arrays [a, c] and [b, d]
on the heap, since those arrays will be unused after that call. To use the
heap would be a step backwards, since the current AA literal code does not use
it.
-Steve
I think the language is powerful enough to afford us the rewrite:
[a:b, c:d] => aaLiteral(a, b, c, d)
Andrei
_______________________________________________
dmd-internals mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-internals