On 08/30/2011 03:20 AM, bearophile wrote:
Timon Gehr:

bar(array(map!((int[] a){return a;})(multi[])));

Simpler:
bar( array(map!q{ a[] }(multi[])) );

And buggy. It returns slices of a local stack frame, because static arrays are value types.


Simpler still when we'll get amap:
bar( amap!q{ a[] }(multi[]) );

Bye,
bearophile

Reply via email to