[Issue 7664] Problem with fixed-sized associative array key assignment

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 24 09:52:02 PDT 2012


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



--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2012-03-24 09:52:23 PDT ---
Compiler can calculate the length for s[0 .. 4] in compile time, because both
lower bound and upper bound are constant expressions. So converting it to
static array type is possible.

But, currently, the slice of an array expression is *always* typed as dynamic
array type.
Therefore it is a constant-folding enhancement, not a bug.

Bug 7665 will also settle down to the same mechanism.

-- 
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