Structs can't be zero bytes in size?
growler
growlercab at gmail.com
Mon Sep 2 21:37:37 PDT 2013
On Tuesday, 3 September 2013 at 04:25:33 UTC, Vladimir Panteleev
wrote:
> On Tuesday, 3 September 2013 at 03:57:09 UTC, growler wrote:
>> If I see code like this I expect a & b to have different
>> addresses.
>
> Why? What do you need that assumption for? What will break if
> the structs became 0-sized?
There's no real reason, it's just a personal preference. As I
said I'm heavily influenced by a C/C++ background and as such
would prefer a different syntax.
More information about the Digitalmars-d
mailing list