invariant()

Michel Fortin michel.fortin at michelf.com
Sun Apr 12 05:57:28 PDT 2009


In D1 you had to write:

	invariant
	{
		...
	}

while in D2, to disabiguate with invariant being overloaded with 
immutability you had to write:

	invariant()
	{
		...
	}

Now that the use of the invariant keyword in D2 has returned to its 
single original meaning of class invariant, is there still a reason for 
it to require an empty parenthesis? Should I fill a bug?

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d mailing list