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


Reply via email to