[Issue 4941] TypeTuple slice boundaries are not CTFE'd
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Sep 25 22:11:47 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4941
--- Comment #1 from Shin Fujishiro <rsinfu at gmail.com> 2010-09-25 22:11:04 PDT ---
Created an attachment (id=776)
Patch against dmd r687, CTFE on tuple slice boundaries
The attached patch obsoletes the patch in comment #0. The new one applies the
same fix to other relevant parts, and fixes following additional cases:
template T(_...) { alias _ T; }
size_t mid(size_t n) { return n/2; }
alias T!(int, int)[0 .. mid($)] A; // A
alias T!(1, 2, 3)[0 .. mid($)] B; // B
void main()
{
T!(int, int, int) values;
auto slice = values[0 .. mid($)]; // C
}
--
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