Re: Declarations near usage
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.