[EMAIL PROTECTED] wrote:
On Thu, 12 Apr 2007, Abdelrazak Younes wrote:

For me, it is clear that debug.[Ch] should go to support. Even though there's some lyx-related constant definitions in there, this thing is clearly _independent_ from the rest of LyX. I just don't understand why we make our lives complicated by maintaining three different versions of the same thing.

Is there some way to work around this. E.g renaming the constants to something generic, or is that way too much work?

As Andre' said: "this could -in theory- be worked around by letting the application 'register' its channels."

AFAIU, this means that we must rework the lyx_debug_trait class so that we pass the lists of debug types at construction. Then we have two choices for the LyXErr instance:

1) We instantiate the LyXErr object in the Singletons framework instead of using the static instance.

2) We continue with the static instance but we create a static method to register the debug trait.

Both solutions are doable but over the top and not worth it IMHO. AFAIU, both solutions require that LyXErr becomes a class instead of a typedef.

Abdel.



Reply via email to