• 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: Collection of Cocoa & objc questions from a "newbie"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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)


References: 
 >Re: Collection of Cocoa & objc questions from a "newbie" (From: "David P. Henderson" <email@hidden>)

  • Prev by Date: Re: Flame war
  • Next by Date: NSURL and login/passwords
  • Previous by thread: Re: Collection of Cocoa & objc questions from a "newbie"
  • Next by thread: Re: Collection of Cocoa & objc questions from a "newbie"
  • Index(es):
    • Date
    • Thread