Anonymous structure
Tofu Ninja via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Apr 17 19:12:24 PDT 2016
Just out of curiosity, what is the point of the following?
struct a{
struct{
int x;
int y;
int z;
}
}
As far as I can tell, the anonymous structure does nothing. How
is it different from
struct a{
int x;
int y;
int z;
}
Also is there a way to have a named substructure, not a nested
structure but something to just add an additional name, maybe
something like
struct a{
struct{
int x;
int y;
int z;
} b;
}
More information about the Digitalmars-d-learn
mailing list