Home

AG wrote:
>> x::X X;
> This looks awful to me. Why don't you rather change the name of your
> variable instead. A variable and its type are two different things.
>
> You never name your son 'son'. You must give him a real name.
>
> AG.
>

Agreed. However, I'm dealing with a few classes that were designed to
be singletons and statically instantiated, ie a class FontsManager is
instantiated as FontsManager. Thus, there are no "sons" here.

AFAIK the only solution is to change the name of the class. Maybe
someone has a better solution for this that doesn't involve (1)
removing the namespace and (2) changing the instance variable name?

Any comments/suggestions will be greatly appreciated.


--
Miguel Guedes

- X marks the spot for spammers. If you wish to get in touch with me
by email, remove the X from my address. -

previous
next

Re: Visual C++ Express Edition or lcc-win32?
Re: Problem using subprocess.Popen on windows
Re: reading string from char array
Re: Why is this loop heavy code so slow in Python? Possible Project Euler spoilers
Re: C/C++ guidelines
Pajacyk
Rodzic Po Ludzku
Fundacja Sloneczko
Fundacja Iskierka
Nasze Dzieci