Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth Mac > Re: Question on...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 6 Topic 91 of 159
Post > Topic >>

Re: Question on Forth & C++/ObjC objects

by "Erik" <customimage@[EMAIL PROTECTED] > Jan 4, 2005 at 03:50 PM

Mike Hore wrote:
> 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...

Damn!  That's right, you're 24 hours ahead of us, aren't you?  Ah
well...

> 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).

You know, I recall some time back checking out Apple's docs on
ObjC (sorry, can't remember the exact webpage or general
section; it was on Objective C and shared library generation, I
think).  On this particular page, Apple actually warned against using
C++ for shared libraries.  Something about how each C++ compiler
sort of does its own thing, so there's no standard way of calling
functions or objects unless you interject a layer of C code.  Don't
know if this relates to the Cocoa framework in any way or it's
just a general C++ issue, though.

I'll try something with XCode sometime this weekend and see
what happens.  I've been meaning to play with it any way. (It would
be interesting if XCode did one thing, and Codewarrior did another...)
Erik
 




 6 Posts in Topic:
Question on Forth & C++/ObjC objects
"Erik" <cust  2005-01-02 03:01:50 
Re: Question on Forth & C++/ObjC objects
Mike Hore <mikehoreREM  2005-01-02 21:03:01 
Re: Question on Forth & C++/ObjC objects
Roelf Toxopeus <these3  2005-01-02 14:25:10 
Re: Question on Forth & C++/ObjC objects
"Erik" <cust  2005-01-04 15:50:23 
Re: Question on Forth & C++/ObjC objects
"Erik" <cust  2005-01-04 15:56:09 
Re: Question on Forth & C++/ObjC objects
n_sacra@[EMAIL PROTECTED]  2005-01-06 03:46:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 16:45:09 CDT 2008.