This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Project proposal


On Tue, Jan 01, 2002 at 01:10:53PM -0500, Jeffrey Turner wrote:
> In light of my recent comments on the preprocessor
> and in keeping with the spirit of C++ I am hereby
> volunteering to remove all #define statements from
> the bits, c_std and c_shadow directories (except
> for those in header guards).  I will start with
> bits/std_limits.h, which I expect to have done w/in
> a week.

But, but, who all agrees with that?
I didn't see anyone even reply to your previous mail...

Actually, I think that using macro's for extensions
is not a bad thing at all, as long as they are not
part of the API.  Since one cannot rely on extensions
to be available everywhere, a macro like
#define _IsUnused __attribute__ ((unused))
is a Good Thing(tm) even.

The "authorities" that are against macro's are
talking about the use of macro "functions", which
are type unsafe and have a C++ counterpart that
is type-safe (inline functions) and thus better.
There is no reason not to use macro's for other
things.

It would be a good thing though if the the macro's
that are a 'standard' within the gcc code would be
clearly documented somewhere - so that new developers
can easily get an overview of what they are supposed
to use.

> Sincerely,
> 
> --Jeff Turner
> 
> PS.  I suspect I'll need CVS write access.

You must be kidding :)

-- 
Carlo Wood <carlo@alinoe.com>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]