Structs can't be zero bytes in size?

Dylan Knutson tcdknutson at gmail.com
Mon Sep 2 21:28:00 PDT 2013


On Tuesday, 3 September 2013 at 00:05:04 UTC, Walter Bright wrote:
> On 9/2/2013 4:57 PM, Dylan Knutson wrote:
>> Can someone shed some light on this?
>
> It comes from C. This was done in C so that addresses of struct 
> instances will always be unique.

So, because backwards compatibility is an important 
consideration, what type of code breakage might one expect if D 
was to implement zero-size structs?


More information about the Digitalmars-d mailing list