How to list all the manifest constants in a class or struct
Heromyth
bitworld at qq.com
Sun Jun 17 02:44:38 UTC 2018
Here is a struct named S:
struct S
{
enum X = 10;
enum Y
{
i = 10
}
enum Z = "str";
struct S {}
class C {}
static int sx = 0;
__gshared int gx = 0;
shared void g();
}
I want list all then the manifest constants in it.
I searched the std.traits and this forums, but get nothing.
Maybe, my real question is how to get the storage class for a
member in a class or struct.
Thanks.
More information about the Digitalmars-d-learn
mailing list