On Fri, Aug 09, 2002 at 02:07:04PM +0100, Angus Leeming wrote:

> Look what I dug out of my mailbox. Did anything ever come of this?

Not from me. Not sure about Ben.

He pops into to #lyx every now and then, but he's still busy writing up.
Maybe when he gets some free time again he might be interested in
reviving this idea. I forget how far he/we got.

>       virtual void visitInset(Inset &) {
>       // do default spellcheck
>               std::cout << "default spellcheck" << std::endl;
>       }
>       virtual void visitInset(InsetERT &) {
>       // don't do any spellcheck !!
>               std::cout << "ert no spellcheck" << std::endl;
>       }

this is so much better than the current virtual method everywhere mess,
IMHO.

I was expermenting with inset_traits yesterday, a realted topic. But hit
the snag of multiple multiple inheritance and ambiguity of resolution,
which I think Ben is referring to here :

http://marc.theaimsgroup.com/?l=lyx-devel&m=102748076625761&w=2

Lars has on his "immediate TODO list" :

        - try out the visitor pattern on the inset write methods.

(http://marc.theaimsgroup.com/?l=lyx-devel&m=102748013425456&w=2)

which would certainly be nicer.

regards
john

-- 
"It is unbecoming for young men to utter maxims."
        - Aristotle

Reply via email to