I just got it! (invariant/const)

Janice Caron caron800 at googlemail.com
Wed Apr 9 16:07:51 PDT 2008


On 09/04/2008, Simen Kjaeraas <simen.kjaras at gmail.com> wrote:
>  class foo
>  {
>         invariant int bar;
>
>         this()
>         {
>                 bar = 4;
>         }
>  }
>
>  This works under DMD 2.012.

That's interesting. I did not know that.



More information about the Digitalmars-d mailing list