[Issue 4397] const/CTFE does not work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 18 01:55:04 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=4397


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |9953


--- Comment #16 from Don <clugdbug at yahoo.com.au> 2013-04-18 01:54:50 PDT ---
There is no compiler bug here, it is working as designed, at least for D2.
However, the design doesn't make sense. I have opened bug 9953 for the design
change.

It would be possible to give the desired behaviour in D1, though it's hardly
worthwhile. In D2 I think it is a logical impossibility. IMHO this should just
fail to compile. You should write "static const" instead of "enum" when you
want to declare a constant of a reference type.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list