On Monday, August 10, 2015, Dave <d...@looktowindward.com> wrote:

> Hi,
>
> Has anyone come up with a way of having the source code support both ARC
> and Manual Memory Management without using #IFDEF or #IF ?


You could use a macro, and if ARC is enabled, then simply have it evaluated
to do nothing. This is common in other languages such as C to e.g make
debuging printouts.


>
> I’ve never understood why the compiler doesn’t just ignore code like:
>
> [super dealloc];
>
> [MyObj release];
>
> If it’s being compiled for ARC, that way both could be compiled with the
> same source code or is there more to it?
>
> Cheers
> Dave
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com <javascript:;>)
>
> 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/sevenbitstech%40gmail.com
>
> This email sent to sevenbitst...@gmail.com <javascript:;>
_______________________________________________

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