Thread overview
[Issue 15928] chain(r1, r2, r3, ...) should discard all arguments after the first infinite range
Apr 15, 2016
Marc Schütz
Apr 15, 2016
Marc Schütz
Dec 17, 2022
Iain Buclaw
April 15, 2016
https://issues.dlang.org/show_bug.cgi?id=15928

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--
April 15, 2016
https://issues.dlang.org/show_bug.cgi?id=15928

Marc Schütz <schuetzm@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schuetzm@gmx.net

--- Comment #1 from Marc Schütz <schuetzm@gmx.net> ---
Not sure about refusing compilation - things like this could appear in otherwise valid generic code...

Anyway, bidi ranges need special treatment - they need to be accessible from the end up to the last infinite range, too.

--
April 15, 2016
https://issues.dlang.org/show_bug.cgi?id=15928

--- Comment #2 from Andrei Alexandrescu <andrei@erdani.com> ---
@Marc didn't think of that. But then what do you do when you come back and you finish the bidir ranges after the infinite one. So then you have a non-empty range that you can't pop back from anymore. The mind boggles...

I agree about refusal to compile - let it ride!

--
April 15, 2016
https://issues.dlang.org/show_bug.cgi?id=15928

--- Comment #3 from Marc Schütz <schuetzm@gmx.net> ---
Ah... I now remember the restriction that infinite ranges cannot be bidirectional. I think this was a conscious decision in order to get a simpler range hierarchy, but there was no fundamental reason to disallow it, right?

This restriction simplifies things for chain(): if any of the individual ranges are infinite, the resulting chain cannot be bidirectional.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=15928

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 01
https://issues.dlang.org/show_bug.cgi?id=15928

--- Comment #4 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/10172

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--