On Tue, 22 Aug 2000, Allan Rae wrote:

Just for the record I made a slight error in my suggestion.

> Nice idiom, wrong application.  Even if someone eventually finds the need
> for variables in the GUIRuntime class then you could use a Pimpl specific
> to the toolkits.  Either way we don't need frontends/GUIRuntime.C.
> 
> What you would have at best (with the current implementation rewritten):
>       frontend/GUIRuntime.h
>       frontend/*/GUIRuntime.C

This is all we'd ever need even if someone wanted to add variables. We
wouldn't need a pimple to take care of variables at all.  We'd just need:

        // frontends/GUIRuntime.h
        struct GUIRuntimeVars;
        class GUIRuntime {
        ...
        private:
        struct GUIRuntimeVars * vars;
        }

and then could define what "struct GUIRuntimeVars" is in the respective
frontends/*/GUIRuntime.C files.

Allan. (ARRae)

Reply via email to