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
[email protected]
http://michelf.com/

Reply via email to