https://issues.dlang.org/show_bug.cgi?id=4485

Mathias LANG <pro.mathias.l...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |pro.mathias.l...@gmail.com
         Resolution|---                         |INVALID

--- Comment #2 from Mathias LANG <pro.mathias.l...@gmail.com> ---
Indeed, this is the correct behavior.
`static immutable` + initializer, or `static const` + initializer leads to a
manifest constant which is an lvalue (you can take the address of it).
On the other hand, `enum` leads to an rvalue (much like a define, it is copy
pasted everywhere).

Closing as INVALID.

--

Reply via email to