Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: __weak definition and problems with Obj-C



On Tue, Apr 14, 2015 at 10:14:36PM +0200, Riccardo Mottola wrote:
> Hi,
> 
> Joerg Sonnenberger wrote:
> >On Tue, Apr 14, 2015 at 06:46:39PM +0200, Riccardo Mottola wrote:
> >>after some research, I carry the proof. __weak (and __strong) is an
> >>Objective-C keyword instroduced when Apple introduced garbage
> >>collection.
> >>Thus the change from 6.1.5 header to current header essentially
> >>breaks objective-c.
> >This is pretty much irrelevant. The C standard is very clear on what is
> >implementation namespace or not. GNUstep is wrong. Period.
> 
> This is Objective-C, not GNUstep. thus, your "period" is perhaps
> nothing more than a semicolon. Perhaps Objective-c is not as
> widespread as I would like to be in the free software world, but
> acting like this is of no help.

This keyword is at best ill-conceived. I don't know if a secondary form
exists like the much more sensible approach taken by C11. A possible
workaround is to make sure that ObjC headers are included after system
headers and #undef the macro first.

Joerg


Home | Main Index | Thread Index | Old Index