3 ms·
Right, but you said it backwards, that C structs are really Objective-C types that look like C. This quote implies that C structs are simply C structs. This is
by sdegutis 13y ago
Right, but you said it backwards, that C structs are really Objective-C types that look like C. This quote implies that C structs are simply C structs.
This isn't just a pedantic point. You can't store an Objective-C pointer in a C struct, unless you cast it to a void* and bridge it. But then you're mixing ARC and non-ARC code in the same file, which is trickier to manage correctly.
- pjmlp 13y agoThe point I was trying to make is that altought the code looks like C, it is Objective-C code from the compiler design point of view. It is an Objective-C struct that shares the same semantics as a C struct. Similar to many other languages that have kept compatibility with C to easy code sharing between code bases.