Invariant -- question #2

Bill Baxter wbaxter at gmail.com
Mon Oct 20 18:09:47 PDT 2008


Does using immutable for things that won't change mean that the
compiler will eventually revert back to accepting the D1 function-like
syntax for class invariants?

I.e.
  invariant() {  some stuff  }
Instead of
  invariant { some stuff }

Not a huge deal for me.  I was just curious.  I seem to remember
people saying this was one thing that made it hard to write code that
is portable between D1 and D2.

--bb



More information about the Digitalmars-d mailing list