Is it possible to obtain an intermediate C code from Objective-C?

前端 未结 2 756
花落未央
花落未央 2020-12-18 07:13

As I understand correctly, besides the fact that Objective-C language is a strict superset of a \"clean\" C, added OOP paradigm is simulated by a set of functions partially

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-18 07:17

    As far as I know, there is no software that preprocesses Objective-C code into intermediate C code.

    But you could write your Objective-C program entirely in C by calling directly into the Objective-C runtime. The trouble is just that the code might vary between implementations or even different versions of the same runtime.

    The question is, is it actually worth the trouble?

提交回复
热议问题