Use @"0" instead of unnamed_0 when translating anonymous unions/structs from C
Ziggit
Use @"0" instead of unnamed_0 when translating anonymous unions/structs from C
Today I found myself not being able to remember the name of an anonymous union/struct after translation. Is it noname or unnamed? Is it prefixed with 1 or 2 underscores? Since such fields have no names, why not just not assign them names? @"7" is not a name! It’s a number! Now there’s no convention to memorize. Doing so also completely eliminates the possibility of name collisions.
0 comments
No comments yet.