Re: Obj-C language question: C function within @implementation
Re: Obj-C language question: C function within @implementation
- Subject: Re: Obj-C language question: C function within @implementation
- From: Jeff Harrell <email@hidden>
- Date: Thu, 3 Jul 2003 10:19:23 -0500
On Thursday, July 3, 2003, at 10:15 AM, Sean McBride wrote:
The error my coworker made (aside from step 3 itself :)) was to
accidentally put the C function within the @implementation block, and
it
still compiles.
I'm also not an Objective C expert, but I don't believe this is an
error. I forget the details, exactly, but I think I remember writing a
program that used an NSArray method for sorting that called on a
comparator function. Not a method, but an honest-to-god C-style
function. I put this function in my implementation, and it compiled and
ran just fine.
So unless I also made the same mistake, I think this is acceptable.
After all, Objective C is just C-plus-some-more, right?
--
email@hidden
http://homepage.mac.com/jharrell
_______________________________________________
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.