Bug 5377 – Ranges do not support tail-const

Status
RESOLVED
Resolution
REMIND
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-12-26T04:01:29Z
Last change time
2018-01-19T02:46:43Z
Assigned to
No Owner
Creator
Simen Kjaeraas

Attachments

IDFilenameSummaryContent-TypeSize
856tailconst.dTemplates and functionstext/plain10864
857test.dProof-of-concept rangetext/plain1198

Comments

Comment #0 by simen.kjaras — 2010-12-26T04:01:29Z
It has long been a problem that D ranges in general do not support tail-const. For that reason, I have created the attached modules. The first contains templates and functions for converting to and from tailconst, tailmutable, tailimmutable and headmutable, the second is a proof-of-concept range demonstrating the functionality.
Comment #1 by simen.kjaras — 2010-12-26T04:03:10Z
Created attachment 856 Templates and functions
Comment #2 by simen.kjaras — 2010-12-26T04:03:37Z
Created attachment 857 Proof-of-concept range
Comment #3 by andrei — 2018-01-19T02:46:43Z
This would require a DIP if it is to be pursued. I'll re-close with REMIND.