Structs can't be zero bytes in size?
Ali Çehreli
acehreli at yahoo.com
Tue Sep 3 14:43:41 PDT 2013
On 09/03/2013 12:35 PM, Walter Bright wrote:
> Some background:
Ooh! This one has a very interesting excerpt:
http://stackoverflow.com/a/10971748
"If the struct-declaration-list does not contain any named members,
either directly or via an anonymous structure or anonymous union, the
behavior is undefined."
So the question is moot because empty struct has undefined behavior...
in C... perhaps in D as well...
Sweet! :)
Ali
More information about the Digitalmars-d
mailing list