www.digitalmars.com         C & C++   DMDScript  

D - Pattern singleton

Okay flame bait attempt 2.

Is it also possible to add the singleton keyword for a class.

This would enforce that all methods and fields are static.
The constructor would always return the same instance of the singleton
class.
May 17 2002