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 20:15:52 -0700
On 7/16/01 7:05 PM, "David P. Henderson" <email@hidden> wrote:
>
But that is not quite right either. In C and Objective-C, you can
>
implicitly declare a function. You will get a compile time warning about
>
it but the file will compile and run. In C++, you must explicitly
>
declare a function either through prototyping or definition; an implicit
>
declaration such as is legal in C earns you a compile time error and
>
your build fails.
That's correct but I wouldn't call relying on 'Miranda' prototypes standard
ANSI C. They were added to ANSI C to keep compatibility with old programs.
>
> C++ is a little more consistent. Methods are members of the class and
>
> must be treated as such.
>
>
>
I think in C and ObjC better than I do in C++ ;)
Boy, not me. I can think about a problem the same way in either ObjC or C++.
Once I get in pure C, my whole approach changes.
--
Many individuals have, like uncut diamonds, shining qualities beneath a
rough exterior. - Juvenal, poet (c. 60-140)