+
Point of view
All features
deferred class SINGLETON
is_equal (other: SINGLETON):
BOOLEAN
effective function
require
ensure
-
commutative: generating_type = other.generating_type implies Result = other.is_equal(Current)
ensure
-
assertion_check_only: Result
current_is_not_an_expanded_type:
BOOLEAN
effective function
The singleton pattern is often used in wrong place. See for example: http://www.theagiledeveloper.com/articles/2005/03/03/singleton-overuse-disclaimer http://blogs.msdn.com/scottdensmore/archive/2004/05/25/140827.aspx http://www.softwarereality.com/design/singleton.jsp or search "Singletonitis" or "singleton overuse".