Why won't mmutable ranges stack?

Simen kjaeraas simen.kjaras at gmail.com
Sun Dec 26 14:01:40 PST 2010


doubleagent <doubleagent03 at gmail.com> wrote:

>> 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?

There is one in digitalmars.D, called tail const. Most of it is about a
month old.
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=123380

There is also bug 5377:
http://d.puremagic.com/issues/show_bug.cgi?id=5377

-- 
Simen


More information about the Digitalmars-d-learn mailing list