Minor issue - zero-length fixed size arrays in variable-sized

bearophile bearophileHUGS at lycos.com
Wed Jul 8 16:05:29 PDT 2009


Jarrett Billingsley:

I have "solved" that problem compiling in release mode...

> I noticed in the spec on arrays that "A [fixed-size] array with a
> dimension of 0 is allowed, but no space is allocated for it.

The future most important implementation of D, LDC, allocates a "bit" for it (I have no idea where this bit goes):
http://www.dsource.org/projects/ldc/wiki/Docs#Zero-lengthstaticarrays

Bye,
bearophile



More information about the Digitalmars-d mailing list