Marko Vendelin <[EMAIL PROTECTED]> writes: | On 15 Sep 2000, Lars Gullik Bjønnes wrote: | | > One not however: do not use defines, ever! | > | > #define CONF_COLUMN "column" | > | > should be | > | > static string const CONF_COLUMN("column"); | | I will submit a patch with all these defines removed. But can you tell me | why should we avoid the defines (I presume only with strings) ? with ints enums and other objects too and especially macros. Defines are bad because: - untyped - arg expansion problem with macros And in C++ we have the needed support for doing this _in_ the language no need to do it in the preprocessor: - const - static - inline Lgb
- Re: [Jules Bean <jmlb2@hermes.cam.ac.... Jean-Marc Lasgouttes
- Re: [Jules Bean <jmlb2@hermes.cam.ac.uk&g... Andre Poenitz
- Re: [Jules Bean <jmlb2@hermes.cam.ac.... Jean-Marc Lasgouttes
- Re: [Jules Bean <jmlb2@hermes.cam... Lars Gullik Bjønnes
- Re: [Jules Bean <jmlb2@herme... Jean-Marc Lasgouttes
- Re: [Jules Bean <jmlb2@h... Marko Vendelin
- Re: [Jules Bean <jmlb2@h... Lars Gullik Bjønnes
- [patch included] Re: [Jules... Marko Vendelin
- Re: [patch included] Re: [J... Lars Gullik Bjønnes
- Re: [patch included] Re: [J... Marko Vendelin
- Re: [patch included] Lars Gullik Bjønnes
- Re: [patch included] Dekel Tsur
- Re: [patch included] Marko Vendelin
- Re: Various (math-mode) HMI improvements Dekel Tsur
- Re: [Jules Bean <jmlb2@hermes.cam.ac.uk>] Vario... hawk
- Re: [Jules Bean <jmlb2@hermes.cam.ac.uk>] ... Lior Silberman