Dynamic array head const in library code?

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Nov 28 05:00:07 PST 2014


Dominikus Dittes Scherkl:

> Why you don't use static arrays for such a purpose?
> I thought this is exactly what they are made for, aren't they?

Currently you can't create a static array with a length known 
only at run-time. And passing around a fixed-size arrays has some 
costs.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list