Structs can't be zero bytes in size?

Dylan Knutson tcdknutson at gmail.com
Mon Sep 2 23:08:00 PDT 2013


On Tuesday, 3 September 2013 at 05:51:36 UTC, Walter Bright wrote:
> Not following this aspect of C would result in silent and 
> unexpected changes in behavior when interfacing D to C data 
> structures, which D is supposed to be very good at.

Fair enough. I'll guess stick with `SomeStruct.tupleof.length == 
0` to determine if a struct has no members.


More information about the Digitalmars-d mailing list