--- Comment #1 from Kenji Hara <k.hara...@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
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: -------