Hi Erik,
Erik wrote:
> Hi!
>
> Roelf Toxopeus wrote:
> > In article <1104663710.743774.22610@[EMAIL PROTECTED]
>,
>
> > > The function sel_getUid() will get you a selector (from a
> C-String), and
> > > objc_getClass() to get a class (also from a C-String).
> >
>
> So in other words, Apple (or Brad Cox, ObjC's creator) created a way
to
> access ObjC functions from non-ObjC languages to maintain some sort
of
> compatibility. Would that be accurate? That's interesting; it never
> occured to me that something like that could be done.
>
> Thanks,
> Erik
A bit supplement.
These functions including "objc_msgSend()" are there also for
Objective-C.
[quote-begin]
Discussion
When it encounters a method call, the compiler generates a call to one
of the functions objc_msgSend, objc_msgSend_stret, objc_msgSendSuper,
or objc_msgSendSuper_stret.
[quote-end]
from: (excuse me for a long line)
<http://developer.apple.com/do***entation/Cocoa/Reference/ObjCRuntimeRef/ObjCRuntimeRef/function_group_2.html#//apple_ref/doc/uid/20001426/objc_msgSend>
As Mike and Roelf implied, mechanisms to link to shared library will be
easier to understand when you think it belongs to lower level than
features of programing languages.
Sincerely,
Nao Sacrada


|