On Jul 5, 2012, at 9:40 AM, Sean McBride <s...@rogue-research.com> wrote:
> On Thu, 5 Jul 2012 10:45:57 +1000, Graham Cox said:
>> I read recently that the '^' was the only possible operator that could
>> be used due to the inherent grammar of C meaning that anything else
>> would have introduced ambiguity.
> 
> IIRC, the other reason was for Objective-C++.  I think ^ is one of the few 
> operators that can't be overloaded in C++.

In C and C++, ^ is a binary operator. Block objects would look like a unary ^, 
so there is no ambiguity.

Note that C++ allows overloading of almost everything, including binary ^, but 
it doesn't allow creation of new operators like unary ^.


-- 
Greg Parker     gpar...@apple.com     Runtime Wrangler



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to