Skip to content

Instantly share code, notes, and snippets.

@samdmarshall
Created May 30, 2015 00:02
Show Gist options
  • Save samdmarshall/30d2ad1dbed0f16fff2c to your computer and use it in GitHub Desktop.
Save samdmarshall/30d2ad1dbed0f16fff2c to your computer and use it in GitHub Desktop.
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