Andre Poenitz wrote:

> On Wed, Jun 25, 2003 at 09:05:28AM +0000, Angus Leeming wrote:
>> Andre Poenitz wrote:
>> > So just rename LyX 'ControlRef' to something else.
>> 
>> More generally, should we not think of putting the whole of LyX inside
>> namespace lyx at some stage?
> 
> Possibly.
> 
> But before I agree on doing so I want 'using namespace lyx;' legalized
> within LyX .C source. I certainly won't start writing a few dozen 'using
> lyx::foo; using lyx::bar;' in every file.

Absolutely. I make the suggestion simply as a mechanism to avoid clashes 
with the World Outside. Qt seems to be a particularly nasty polluter but we 
don't exactly help ourselves in this regard ;-)

> [The headers will get even uglier when prefixing everything with lyx::,
> [but I guess there's no way out in this case...]

More ugly than this? Doesn't seem too bad to me:

#ifndef SOMEFILE_H
#define SOMEFILE_H

#include <all_headers_outside_namespace_scope>

namespace lyx {
...

} // namespace lyx
#endif // NOT SOMEFILE_H

-- 
Angus

Reply via email to