[Top][All Lists]

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

Re: beta testing

From: Akim Demaille
Subject: Re: beta testing
Date: 19 Apr 2002 17:13:00 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

| One reason for wrapping stuff within a namespace is to make the names local
| to that namespace. However, this does not work with the macro names that
| the Bison parser uses. So for there to be much of a point using namespaces,
| one would have to replace
|   #define identifier  257
|   #define implies     258
|   ...
| with
|   const int identifier = 257;
|   const int implies = 258;
|   ...
| in the .tab.cc file, and
|   extern int identifier;
|   extern int implies;
|   ...

Hans, could you detail why you prefer const int over enum?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]