[Patch][ObjC][Proposal] NSValue literals

jahanian fjahanian at apple.com
Mon Nov 17 10:35:28 PST 2014

This is good extension of auto boxing syntax to include other object types which can be contained in NSValue.
This is also a language extension to Objective-C.
We have language review process in place that we need to go through for any new extensions. Please wait till we have exhausted 
this process. Thank you for working on this.

- Fariborz

> On Nov 16, 2014, at 10:15 AM, AlexDenisov <1101.debian at gmail.com> wrote:
> Patch extends boxing expressions to support NSValue.
> Some C structures might be boxed into a NSValue, e.g.: NSPoint, CGPoint, NSRect, etc.
> This patch extends boxing expressions to accept the structures, that could be used to construct NSValue object:
> NSPoint p;
> NSValue *point = @(p);
> CGRect r;
> NSValue rect = @(r);
> Full list of supported structures:
> NSPoint, NSSize, NSRect, CGPoint, CGSize, CGRect, NSRange.
> -- 
> AlexDenisov
> Software Engineer, https://github.com/AlexDenisov <https://github.com/AlexDenisov><nsvalue_literals.diff>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu <mailto:cfe-commits at cs.uiuc.edu>
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits <http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141117/f43f1949/attachment.html>

More information about the cfe-commits mailing list