static struct S { public static: int x; string a; } .... auto s = &S; // ?!?!?! invalid because S is a struct, but... basically s = S. So S.x = s.x and s.a = S.a; Why do I have to do this?Because in visual D, global structs don't show up in the debugger. So if I create a local alias, I can see see them, but I don't wanna have to do one variable for each variable in the struct...
How to get the address of a static struct?
FoxyBrown via Digitalmars-d-learn Sun, 09 Jul 2017 20:51:07 -0700
- How to get the address of a stati... FoxyBrown via Digitalmars-d-learn
- Re: How to get the address o... rikki cattermole via Digitalmars-d-learn
- Re: How to get the address o... Era Scarecrow via Digitalmars-d-learn