About typequalifier and generic containers.
Simen Kjaeraas
simen.kjaras at gmail.com
Sun May 5 15:46:17 PDT 2013
On Sun, 05 May 2013 23:32:47 +0200, Jonathan M Davis <jmdavisProg at 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
More information about the Digitalmars-d
mailing list