• 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 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)


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

  • Prev by Date: Re: Learning Cocoa (OT!: Small Language Rant)
  • Next by Date: Re: cocoa-dev digest, Vol 1 #289 - 12 msgs
  • 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