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. -