[haiku-development] Re: R1/a4 initial planning

  • From: Paul Davey <plmdvy@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 26 Feb 2012 00:46:32 +1300

> whats about language binding when using special language features e.q. of
> ObjectC? Not sure but that could cause some trouble.
>

Objective-C is actually infinitely easier to bind to than C++.
In Objective-C all object related operations are performed at runtime
and there is a runtime library that provides support for the object
stuff, this API can actually be used directly from C and other
languages that can call C.
The downside of Objective-C is that since everything is dynamic it is
usually slower than the highly compile time optimised C++, you cannot
hold objects on the stack either they must be allocated and held by
reference.

There exist languages written in Obj-C that can directly call to its
object system, that is without any need to write wrappers or modules,
for C++ this would be effectively impossible and if you tried you
would have to embed a C++ compiler in your language.

Other related posts: