Andre Poenitz wrote:
> But not nice (read UGLY). In fact I neither like the template idea and
> certainly not the macro.
> 
> [OTOH, enums are rarely nice...]
> 
> [And if you keep pushing on that I'll see the day when we'll have the
> template but not the macros getting nice obfuscated code...]

There are only 3 reasons to #include local header files in other local header 
files.
1. derivation. Nothing we can do about that.
2. member variables. Use the pimpl idiom.
3. enums. Use this EnumWrapper proposal or something similar.

(3) is often a necessary precursor to (2). It is pointless pimpl-ing a class 
if you still have to #include the objectionable header file to pass variables 
to functions.

Ah well. It is all becoming academic, as I've run out of time to play with 
LyX. You'll just have to keep the inter-twined header files and painful 
recompilation when you change any header file in the src directory.

Don't let me hear you complaining about such again however.

-- 
Angus

Reply via email to