[Patch][ObjC][Proposal] NSValue literals
Alexey Denisov
1101.debian at gmail.com
Tue Mar 17 02:28:50 PDT 2015
> Hi, Alex. Sorry for the long delay.
No worries :)
> The first is that you should add an attribute, __attribute__((objc_boxable)), that goes on struct declarations. The @(…) syntax should only allow a struct operand if it has this attribute. Make sure you test the __has_attribute for this. You should also make sure that redeclarations after the definition can add this attribute and have it still be respected by the type-checker; this will be extremely useful for people migrating code to SDKs that lack these attributes.
Got it. I really like this idea.
Also was thinking about more universal way, but didn’t find good solution.
Anyway, let’s talk later with a new version.
--
AlexDenisov
Software Engineer, http://alexdenisov.github.io
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150317/09e60084/attachment.sig>
More information about the cfe-commits
mailing list