[fpc-pascal] Implementing a true Singleton - Can we decrease the visibility of a method?

Micha Nelissen micha at neli.hopto.org
Fri Dec 8 21:12:24 CET 2006


Daniƫl Mantione wrote:
> 
> Op Fri, 8 Dec 2006, schreef Micha Nelissen:
> 
>> Btw, I think singletons are nonsense too. Why is a global variable evil,
>> and a singleton class not ?
> 
> Well, a singleton can hide and/or protect its private data.

Not more than a global variable of the same class type ?

Micha



More information about the fpc-pascal mailing list