Re: Declarations near usage
Re: Declarations near usage
- Subject: Re: Declarations near usage
- From: Ondra Cada <email@hidden>
- Date: Thu, 17 Oct 2002 12:37:41 +0200
On Thursday, October 17, 2002, at 05:49 , Phillip Hutchings wrote:
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.
Unless I missed something obvious you can't. So far as I understand C99,
you can declare the enumerator this way, but you can't declare the 'o'.
Besides, since I do need WO4.5.1, and since Apple decided not to support
them anymore, I am stuck with 10.1 :((((
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.