How do you enumerate the names and types inside a struct or class at compile time?
i.e. to do the following:
struct Foo {
int x;
int y;
}
string serialise!(A)(A a) {
...magic...
}
auto f = Foo(1,2);
serialise(f); -> "x:1, y:2"
Thanks,
Chris.
Like this:
Practical example: https://github.com/CyberShadow/ae/blob/master/utils/json.d#L107