Erik wrote:
> Well, according to Google groups, this will be the first post of the
> year, so: First Post! Woo-Hoo!
Not here -- it's the 2nd here by now. Maybe in your time zone...
>
> Anyway,
>
> I was reading some docs on Objective-C, which I have yet to really
> start learning, and I found myself wondering on how Mops (or any OO
> Forth for that matter) would handle instantiating or calling objects in
> Objective C or C++.
The forthcoming Mops 5.6 will have direct sup****t for calling ObjC
functions in Cocoa. I won't give all the details here -- we're in
beta but it shouldn't be long.
>
> For example, if you have an ObjC or C++ shared library. Being that
> they both are object oriented languages, it would make sense that there
> would be cl***** and objects involved. If calling that library meant
> accessing those objects, then I'm sure there would be some
> cross-language quirks to say the least.
Yes, definitely.
>
> Then again, ObjC (to my understanding) uses the C conventions for
> shared library calling, so perhaps using ObjC objects wouldn't be that
> difficult. C++ would be a different story, though...
It's probably "just" a matter of working out what actual functions
to call. Certainly the ObjC sequence is constructed of a series
of low-level calls. C++ would probably be similar though I haven't
really looked into it. But once you know the low-level calls, you
just call them. The ABI for simple calls is pretty standard across
PowerPC languages (though I suspect there may be minor differences
with floating-point parameters).
>
> Anyway, I just wanted to throw that out there and see what everybody
> thought. Thanks for your time!
>
> Happy New Year!
Yes, and to you too!
Cheers, Mike.
----------------------------------------------------------------
Mike Hore mikehoreREM@[EMAIL PROTECTED]


|