Zero-length static array spec
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Sun Feb 1 08:04:32 PST 2015
On Sun, 01 Feb 2015 07:50:08 -0800, H. S. Teoh via Digitalmars-d wrote:
>> actually, `data0.ptr` can point anywhere (except 0 as null ;-), 'cause
>> it's so small that it takes no room at all, so it doesn't matter where
>> it will be placed. ;-)
>
> Actually, it *can* be null too, since it doesn't actually take up any
> space, so it would fit perfectly fine in nullspace (non-existent space)
> as well. :-P
then it will become non-existent too, as putting something to the place
that doesn't exist turns that to non-existent. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150201/f9355332/attachment.sig>
More information about the Digitalmars-d
mailing list