Re: Syntactic sugar to access arrays and hashes in Objective-C

2009-04-09 Thread John Holdsworth
Hi David, Thanks for the reply, I've managed to find a solution for my needs in the end. It turns out the Apple gcc compiler supports mixing C++ and Objective-C in the same source file so I've been able to implement what I was looking for using operator overloading - a much more flexible sol

Re: Syntactic sugar to access arrays and hashes in Objective-C

2009-04-08 Thread David Ayers
Am Samstag, den 21.03.2009, 11:59 +0100 schrieb John Holdsworth: > I was wondering if it would be a useful extension to Objective-C > expand the [] operator > to support array and hash references to NSArray and NSDictionary > classes directly to > greatly improve the readability of code: I'm

Re: Syntactic sugar to access arrays and hashes in Objective-C

2009-03-21 Thread John Holdsworth
Hi gcc'ers, I was wondering if it would be a useful extension to Objective-C expand the [] operator to support array and hash references to NSArray and NSDictionary classes directly to greatly improve the readability of code: NSArray *players = [NSArray arrayWithObjects:..., nil]; [players