[Issue 4397] const/CTFE does not work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 1 12:35:00 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4397
--- Comment #11 from nfxjfg at gmail.com 2010-09-01 12:34:43 PDT ---
Btw. this is a CTFE problem, and the first example is in D1. I don't know what
the hell is with D2 and immutable and implicit dups, but to get the same
behavior on D2, replace const with enum.
The array should be on the *datsegment*, not somehow constructed on the fly.
Not sure about the exact testcase in bug 2356, but it's definitely different
from writing "int[3] x; x[] = [1,2,3];".
--
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