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

Re: Bug#320630: libc6-dev: /usr/include/sys/socket.h broken with g++ 4.x



On Sat, 2005-07-30 22:07:42 +0300, Jaakko Niemi <liiwi@lonesom.pp.fi> wrote:
> On Sat, 30 Jul 2005, Christoph Hellwig wrote:
> > >  http://lists.debian.org/debian-devel/2005/07/msg01486.html
> > > 
> > >  for more discussion about this. So, please just ditch the
> > >  enum and leave #defines.
> > 
> > No, changing headers that way is a bad idea.  Fix your program to
> > not assume whether constants are anonymous unions or defines.
> 
>  What is the enum needed for?

enums are generally a good think and underestimated. They for example
allow the compiler to check switch() statements if all possible input is
handled there.

MfG, JBG

-- 
Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

Attachment: signature.asc
Description: Digital signature


Reply to: