Re: Standard C functions in Objective-C?
Re: Standard C functions in Objective-C?
- Subject: Re: Standard C functions in Objective-C?
- From: Nathan Groh <email@hidden>
- Date: Sun, 12 May 2002 05:22:34 -0700
Ah, thanks, Nathan. That's what I assumed, but I wasn't certain.
Once again, the lists help me immensely. : )
With Gratitude,
--Nathan
On Sunday, May 12, 2002, at 05:14 AM, Nathan Day wrote:
Yes you can us c functions, you can put them inside or outside of a
class. One of the goals of objective-c was to be able to mix it with
straight c.
On Sunday, May 12, 2002, at 09:34 PM, Nathan Groh wrote:
Is it possible to implement standard C functions in an
Objective-C program? I'd like to stuff some brute-work code out of the
way to enhance readability. The code is only going to be used in the
context of a single method, so creating another method explicitly to
hold the code seems somewhat silly. A small function would be
appropriate, but I didn't happen upon any information which said "yea"
or "nay" with regards to this question. If it is possible, where and
in what file would the prototype go? In the meantime, I'll just drop
the code into a method, since that's probably the Right Thing To Do,
anyway. : )
_______________________________________________
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.