Created
May 30, 2015 00:02
-
-
Save samdmarshall/30d2ad1dbed0f16fff2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
union { | |
id obj | |
float f | |
int i | |
bool b | |
BOOL B | |
char c | |
double d | |
uintptr_t p | |
} u; | |
u.p = objct.methodname; | |
//access via u.<type> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment