• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Obj-C language question: C function within @implementation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obj-C language question: C function within @implementation


  • Subject: Re: Obj-C language question: C function within @implementation
  • From: Oscar Morales Vivó <email@hidden>
  • Date: Thu, 3 Jul 2003 19:51:08 +0200

On Thursday, Jul 3, 2003, at 18:56 Europe/Madrid, daniel wrote:

The code compiles inside the @implementation block because of Apple's fairly recent (last couple years?) automatic "C <-> ObjC" bridging support.

It doesn't compile outside the @implementation block because there's no Obj-C runtime to associate with the message sends that are made within the function.

I don't know if I get your point there. I've done plenty of plain C functions out of @implementation blocks that do messaging between Obj-C objects (in fact it's my usual way of implementing class-specific private methods).

The only thing I want to know is if a plain vanilla C function in an @implementation block is just compiled as any other one. Not the best of tastes most of the time, but I wouldn't mind that much.


/*
Oscar Morales Vivs

Eternal Computer Science Student. Master of C++ Templates. Cocoa Nut. Computer Graphics Scientiam Lumina. UI Guru in Training. Dabbler in all things CS and most which are not.

Web stuff: http://homepage.mac.com/oscarmv/index.html
*/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Obj-C language question: C function within @implementation (From: daniel <email@hidden>)

  • Prev by Date: Static libraries
  • Next by Date: Re: Can't create new document
  • Previous by thread: Re: Obj-C language question: C function within @implementation
  • Next by thread: Re: Obj-C language question: C function within @implementation
  • Index(es):
    • Date
    • Thread