Creating Anonymous structs
Alex
AJ at gmail.com
Sat May 18 16:03:22 UTC 2019
Also, I realize one could use Voldemort types, e.g., something
like
auto x = (){ struct X { int x; } return X(); }
but this is so verbose as to not really be any better(although it
does accomplish hiding the struct, I'm not so concerned with
hiding the struct as I am code brevity. I do realize there is
very little extra chars but that isn't the point. I'm asking if
there is a way to accomplish what I'd like to do).
More information about the Digitalmars-d-learn
mailing list