invariant()

Michel Fortin michel.fortin at michelf.com
Sun Apr 12 07:54:07 PDT 2009


On 2009-04-12 10:29:52 -0400, Jarrett Billingsley 
<jarrett.billingsley at gmail.com> said:

> Actually, the D1 compiler now accepts the "invariant() {}" syntax, so
> if you want your code to work with both D1 and D2, use that.

Actually, I was just converting some D1 code to D2 (with no intention 
of keeping it D1-compatible) and had to change a few of them, which 
made me wonder whether Walter has considered reversing this change to 
D2 now that the reason for doing it has disappered.

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




More information about the Digitalmars-d mailing list