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

Reply via email to