incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shazron <shaz...@gmail.com>
Subject Re: [iOS] Going ARC
Date Thu, 08 Mar 2012 22:58:39 GMT
I'd rather not do #ifdefs and go whole hog on ARC. If we go ARC we
can't support iOS 3.x (see my previous email).

The #ifdef you would use:

#ifdef __has_feature(objc_arc)
    NSLog(@"ARC eh");
#endif

On Thu, Mar 8, 2012 at 12:16 PM, Patrick Mueller <pmuellr@gmail.com> wrote:
> On Thu, Mar 8, 2012 at 14:14, Shazron <shazron@gmail.com> wrote:
>
>> Ref: https://issues.apache.org/jira/browse/CB-274
>>
>> I say we go ARC.
>>
>
> I think we need to support ARC.  The question is do we need to support NOT
> using ARC as well.
>
> Presumably there's some pattern of leaving your retain/release calls in the
> code, #ifdef'd, so they aren't used when your project is using ARC, and are
> used when your project isn't.  Eventually, in theory, everyone is using ARC
> all the time (just like we were going to use GC all the time!!), and we can
> remove the #ifdef'y bits.
>
> --
> Patrick Mueller
> http://muellerware.org

Mime
View raw message