www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - On invariants

The specification says that invariants can be part of both modules, structs
and classes, but are only discussed closer in the context of classes, and
then in such a way that it sounds like they are _not_ available for modules
and structs (or at least not meant to be used for those). What is the true
intention and reality here?

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango
Aug 05 2007