Re: Use of C++ Keyword as variable name
- From: Dan Winship <danw ximian com>
- To: Havoc Pennington <hp redhat com>
- Cc: Jeff Franks <jcf tpg com au>, gtk-devel-list gnome org
- Subject: Re: Use of C++ Keyword as variable name
- Date: 29 Mar 2001 00:53:26 +0500
> 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]