How do I pass multidimensional static arrays to functions expecting

bearophile bearophileHUGS at lycos.com
Mon Aug 29 18:20:08 PDT 2011


Timon Gehr:

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

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

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

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list