• 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: Future Objective-C changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Future Objective-C changes


  • Subject: Re: Future Objective-C changes
  • From: Ben Dougall <email@hidden>
  • Date: Wed, 21 May 2003 15:59:48 +0100

Actually it is a definition. A statement such as

int i;

is both a definition and declaration.

i'm reading the k&r book at the moment and from that:

declarations specify the interpretation given to each identifier; they do not necessarily reserve storage space associated with the identifier. declarations that reserve storage space are called definitions.

so int x; is not a definition, just a declaration. int x = 0; is a definition. a declaration like int x; does not set aside space.
_______________________________________________
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.
  • Follow-Ups:
    • Re: Future Objective-C changes
      • From: Joe Chan <email@hidden>
References: 
 >Re: Future Objective-C changes (From: Joe Chan <email@hidden>)

  • Prev by Date: Re: Future Objective-C changes
  • Next by Date: Re: Future Objective-C changes
  • Previous by thread: Re: Future Objective-C changes
  • Next by thread: Re: Future Objective-C changes
  • Index(es):
    • Date
    • Thread