[fpc-pascal] Implementing a true Singleton - Can we decrease the visibility of a method?
Michael Van Canneyt
michael at freepascal.org
Fri Dec 8 14:36:50 CET 2006
On Fri, 8 Dec 2006, Steve Williams wrote:
> > I found this by trying to implement a True Singleton in Free Pascal /
> > Delphi. For those that don't know, a Singleton is a Design Pattern
> > that allows only one instance of a class. It seems it is impossible
> > to do in Free Pascal / Delphi. :-(
> Try this.
Maybe we should include an implementation in FPC by default ?
More information about the fpc-pascal