DMD 1.025 and 2.009 releases

Vladimir Panteleev thecybershadow at gmail.com
Sun Jan 13 11:54:08 PST 2008


On Sun, 13 Jan 2008 21:47:36 +0200, foobar <foobar at nomail.net> wrote:

> nice work !
>
> i am very curious what exactly has changed from 2.008 to 2.009 regarding the const/invariant stuff. what has changed in the behaviour of const and why is there enum as another way to manifest a constant ?
>
> where is the difference between
>  invariant int x = 3;
> or
>  const int x = 3;
> and
>  enum int x = 3;
> ?

Out of those three, here is only one way to declare a manifest constant - enum. The first two will take up space in the resulting binary.

Also, sock puppetry is not nice (if you did that on purpose).

-- 
Best regards,
 Vladimir                          mailto:thecybershadow at gmail.com



More information about the Digitalmars-d-announce mailing list