[Issue 4485] CT only arrays appear in executable
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Oct 22 03:59:21 UTC 2018
    
    
  
https://issues.dlang.org/show_bug.cgi?id=4485
Mathias LANG <pro.mathias.lang at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |pro.mathias.lang at gmail.com
         Resolution|---                         |INVALID
--- Comment #2 from Mathias LANG <pro.mathias.lang at 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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list