Zero-length static array spec
Stefan Frijters via Digitalmars-d
digitalmars-d at puremagic.com
Sun Feb 1 07:22:35 PST 2015
On Sunday, 1 February 2015 at 14:54:37 UTC, ketmar wrote:
> On Sun, 01 Feb 2015 14:42:31 +0000, Stefan Frijters wrote:
>
>> It does not seem to say whether a zero-length array should
>> have a valid
>> address or not.
>
> i believe that zero-length array should not be `null`, as it's
> "infinitely small", yet not "non-existent". at least this is
> what my
> logic tells me.
Fwiw, I would also like this to be the case, as to not have to
handle any special cases when using int[N] templates and such.
More information about the Digitalmars-d
mailing list