On Sun, 05 May 2013 23:32:47 +0200, Jonathan M Davis <jmdavisp...@gmx.com> wrote:

I don't know what the solution is (Steven has some ideas, but I don't know what they are), but if const and ranges are ever going to mix, we need to be able to reasonably get tail-const ranges from const ranges. Otherwise, as soon
as you get a const range, it's pretty much useless.

I wrote a proof-of-concept tail-const range framework at some point, and
posted it to BugZilla[1]. It shows that such a thing is possible in the
language as-is, however I don't think it would win a beauty contest.

This is a hard problem to get right, and I'd love to see Steven's ideas.

[1]: http://d.puremagic.com/issues/show_bug.cgi?id=5377

--
Simen

Reply via email to