svn commit: r268137 - head/sys/sys

Joerg Sonnenberger joerg at britannica.bec.de
Fri Jun 19 17:13:14 UTC 2015


On Fri, Jun 19, 2015 at 03:22:49PM +0100, David Chisnall wrote:
> > NetBSD:
> > > sys/cdefs_elf.h
> > #define __weak  __attribute__((__weak__))
> > 
> > FreeBSD:
> > > sys/cdefs.h
> > #define	__weak	__attribute__((__weak__))
> 
> NetBSD is the only system that I’m aware of that has actually shipped
> this, and it broke a lot of things.

"A lot of things"? Let's keep a sense of proportion: it broke exactly
one thing and that's gnustep. This isn't the first time that Apple's
language extension broke system headers either, see __block and glibc.
Objective C has no more ownership of "__weak" than the OS has and the
common style of header keywords is actually a much stronger reason
*against* the pseudo-keyword use in Objective C.

Joerg


More information about the svn-src-all mailing list