Re: Use of C++ Keyword as variable name



> If any volunteers are feeling bored, it might be nice to have
> configure.in for glib/pango/gtk check for the c++ compiler, do an
> AM_CONDITIONAL on it, and iff the compiler is found build a test
> program in the tests subdir that is just an empty main() but includes
> all the library headers. Then these keyword uses will break
> compilation and get discovered right away.

You don't really need c++. Just "#define class $" or something.

You could even add that to glib.h (with an #ifndef __cplusplus around
it). :-)

-- Dan




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