invariant()
davidl
davidl at nospam.org
Sun Apr 12 06:53:10 PDT 2009
在 Sun, 12 Apr 2009 20:57:28 +0800,Michel Fortin
<michel.fortin at michelf.com> 写道:
> 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?
>
It will be good if it will be the same in both D1 and D2
--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
More information about the Digitalmars-d
mailing list