Why won't mmutable ranges stack?

doubleagent doubleagent03 at gmail.com
Sun Dec 26 13:51:12 PST 2010


== Quote from Simen kjaeraas (simen.kjaras at gmail.com)'s article
> Also note that auto is unnecessary when another storage class is
> specified (const,immutable).

Ah, that's right!


> There have been several asking for tail-const (i.e. const(int)[])
> support for ranges other than arrays. I have even written an
> implementation that to an extent works, but more language support would
> be preferable.

That seems like a really important feature to have.  If I'm not mistaken there are
certain functional data structures which would be impossible to implement without
first working around this limitation.  Is there a discussion thread for this?


> std.conv.parse[1] with a second parameter (radix) of 2 works for me:

Thanks!


More information about the Digitalmars-d-learn mailing list