• 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: Declarations near usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Declarations near usage


  • Subject: Re: Declarations near usage
  • From: Phillip Hutchings <email@hidden>
  • Date: Thu, 17 Oct 2002 16:49:16 +1300

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Thursday, Oct 17, 2002, at 09:22 Pacific/Auckland, Ondra Cada wrote:

On Wednesday, October 16, 2002, at 09:25 , tibbetts wrote:

For the record, this is a well-established coding practice in C, and probably in
Objective-C, too.

Yeah it is and mostly I am quite contented with that, but man, I do lack the possibility to do

for (NSEnumerator *en=[array objectEnumerator];id o=[en nextObject];) [o whatever];

;)))

Considering that this technique is used at least 5 times in my application, I'm pretty sure you can. I've been doing Java before, but now that I'm using ObjC/Cocoa I just did it without thinking. It works fine on 10.2 dev tools.



- -------------------------------
Phillip Hutchings
http://www.sitharus.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)

iEYEARECAAYFAj2uM0AACgkQ1PJqI21cmKDP1QCeL22H+xCbHVHuRPxVG5Hd5kB8
q/MAn3pZIeSngyUS09jVE0rPVXIxZtd0
=BgXB
-----END PGP SIGNATURE-----
_______________________________________________
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: Declarations near usage
      • From: Ondra Cada <email@hidden>
References: 
 >Re: Declarations near usage (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Cocoa and PortAudio!
  • Next by Date: ___gxx_personality_v0 undefined
  • Previous by thread: Re: Declarations near usage
  • Next by thread: Re: Declarations near usage
  • Index(es):
    • Date
    • Thread