|
|
|
|
|
by fleitz
4298 days ago
|
|
No, more correctly ObjC is compiled into assembler that uses a C/C++ runtime. Swift uses some C/C++ under the hood, and integrates it's object model into the ObjC object model (which is C). However, swift structs are not objects, from what I can tell they are virtually identical to structs in C (from a memory layout perspective). Some swift objects are incompatible with the ObjC object model and cannot really be used from ObjC or really any other language (it does name mangling like C++ which makes interfacing rather difficult) https://developer.apple.com/library/mac/documentation/Cocoa/... |
|