Re: spell checker


Subject: Re: spell checker
From: Mike Nordell (tamlin@algonet.se)
Date: Fri Apr 13 2001 - 08:07:28 CDT


Joaquin Cuenca Abela wrote:
> > I think it would be better and safer if SpellManager::instance was
defined
> > as
> >
> > SpellManager&
> > SpellManager::instance()
> > {
> > SpellManager manager;
> > return manager;
> > }
>
> ?
> This was we get a new instance each time that we call instance(). That
> has nothing to do with a singleton pattern.
> Am I missing something?

Oh shoot me in the foot! :-)

Of course the manager instance should be static.

/Mike - my hands are faster than my mind



This archive was generated by hypermail 2b25 : Fri Apr 13 2001 - 08:07:06 CDT