Closed GoogleCodeExporter closed 9 years ago
http://code.google.com/p/guichan/issues/detail?id=36&can=1&q=delete
Renaming DELETE to DEL is ugly in my opinion because DEL doesn't follow our
naming
convention. Of course, it excludes the usage of native windows code - such as a
pure
windows input backend - but there is no such back end present at the moment.
What do you other guys think? Should we rename DELETE to DEL and pray that DEL
is not
defined by some other header just to make it possible to use Guichan with native
windows code?
Original comment by olof.nae...@gmail.com
on 21 May 2008 at 8:16
Both "solutions" are hacky and ugly.
The main problem is, of course, that the names used in the enum are very
generic,
like DELETE, but END or ENTER may also easily clash with definitions elsewhere.
Macros don't respect namespaces, so I guess the only proper solution will be to
only
use names here that are probably not used as macros. Like GCN_DELETE or GCN_END
and
such, thus imitating namespaces by prefixes.
Original comment by tob...@gmx.net
on 22 May 2008 at 7:51
What about dropping the uppercasing? It's not very common to do that in a C++
enum
anyway, and I'm sure it's rather unlikely that there's a macro called "Delete".
Original comment by b.lindeijer
on 11 Jun 2008 at 8:57
That's a very good idea.
Original comment by olof.nae...@gmail.com
on 11 Jun 2008 at 3:55
So should we do this for all enums in Guichan? Guichan-using projects will love
it! :-P
Original comment by b.lindeijer
on 15 Jul 2008 at 10:04
I guess so :) It's by far the best solution in my opinion.
Original comment by olof.nae...@gmail.com
on 15 Jul 2008 at 11:03
All enum names have changed. They are now named as classes.
Original comment by olof.nae...@gmail.com
on 4 Aug 2008 at 10:56
Original issue reported on code.google.com by
raphael....@googlemail.com
on 21 May 2008 at 7:33