Re: Collection of Cocoa & objc questions from a "newbie"
Re: Collection of Cocoa & objc questions from a "newbie"
- Subject: Re: Collection of Cocoa & objc questions from a "newbie"
- From: Chris Gehlker <email@hidden>
- Date: Mon, 16 Jul 2001 18:48:13 -0700
On 7/16/01 6:25 PM, "David P. Henderson" <email@hidden> wrote:
>
C, and by extension Objective-C do not require declaration. In C, if you
>
can live with compiler warnings, you can do implicit declaration. C++
>
requires explicit declaration. Do not confuse declaration with
>
prototyping. In C:
Actually this isn't quite right. ANSI C, ObjC and ANSI C++ have exactly the
same rules for functions. ANSI C++ and ObjC have different rules for
methods. ObjC follows the "Definition is Declaration" for methods that both
ANSI C and ANSI C++ use for functions.
C++ is a little more consistent. Methods are members of the class and must
be treated as such.
--
Tact is the ability to describe others as they see themselves. -Abraham
Lincoln, 16th president of the U.S (1809-1865)