Changes between Version 5 and Version 6 of ObjectiveC
- Timestamp:
- 01/12/09 22:12:07 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ObjectiveC
v5 v6 19 19 We require the programmer to supply headers for all Objective-C classes implemented in Haskell. This enables the Objective-C compiler to do type checking and enables Interface Builder to recognises properties used as outlets. 20 20 21 == Architecture == 22 23 Following the structure of the C FFI, the basic Objective-C FFI has two major components: (1) an extension of the Haskell language by new forms of `foreign` declarations and (2) a standard library. The C FFI uses the `ccall` (and `stdcall`) calling convention for `foreign` declarations, whereas Objective-C uses the new `objc` calling convention. The C-specific FFI library is `Foreign.C` (aka `CForeign`) and, for Objective-C, we use `Foreign.ObjectiveC`. 24 25 In addition to the low-level FFI, higher-level libraries and tools may provide more convenient APIs. In particular, the basic FFI makes no attempt to model Objective-C's class hierarchy and overloading of selectors in Haskell's type system. This is the responsibility of higher-level libraries. 26 21 27 == Subtopics == 22 28 … … 27 33 * [ObjectiveC/Naming Naming conventions] (they are not enforced, but recommended) 28 34 * [ObjectiveC/MemoryManagement Memory management] 35 * `Foreign.Objective.C` 29 36 30 37 == Background and related work ==
