manifest enum
John Reimer
terminal.node at gmail.com
Tue Jan 1 12:04:42 PST 2008
John Reimer wrote:
> This may have been asked before, but the documentation isn't clear:
>
> With the new enum in D 2.0, is there a difference between a singly
> declared manifest:
>
> enum i=4;
>
> and the anonymous enum block:
>
> enum {
> A = 1.2f,
> B = 2L,
> C = 3
> }
>
> The docs say that the singly declared manifest enum is not an lvalue and
> it's address can be taken (which is eaasy to understand).
correction: "...and it's address /can't/ be taken (which is easy to
understand)."
Argh!
-JJR
More information about the Digitalmars-d
mailing list