views:

79

answers:

1

if I have a struct say:

struct myStruct {
int someInt;
flot someFloat;
}

Is there any way to get a list of the member variables? ie. someInt, someFloat?

+6  A: 

No, it's not. Unlike Objective-C classes, structs don't save member names anywhere, they're only known to the compiler.

Zydeco