Re: Why does is the RandomAccessInfinite interface not a valid RandomAccessRange?

2021-12-19 Thread MoonlightSentinel via Digitalmars-d-learn
On Sunday, 19 December 2021 at 09:19:31 UTC, D Lark wrote: Do you know if there's a nightly version I can specify to use your fix? Nightly builds are available at https://github.com/dlang/dmd/releases/tag/nightly.

Re: Why does is the RandomAccessInfinite interface not a valid RandomAccessRange?

2021-12-19 Thread Bastiaan Veelo via Digitalmars-d-learn
On Sunday, 19 December 2021 at 09:19:31 UTC, D Lark wrote: Do you know if there's a nightly version I can specify to use your fix? Are you inheriting from `RandomAccessInfinite`? Then you can probably add ```d static if (__VERSION__ < 2099) enum bool empty = false; ``` to make it work.

Re: Why does is the RandomAccessInfinite interface not a valid RandomAccessRange?

2021-12-19 Thread D Lark via Digitalmars-d-learn
On Sunday, 19 December 2021 at 00:07:46 UTC, Paul Backus wrote: On Saturday, 18 December 2021 at 19:48:00 UTC, D Lark wrote: Can someone please tell me if this is expected behaviour and what the reasoning is behind this choice? Looks like a bug. I've filed a report on the D issue tracker: htt

Re: Why does is the RandomAccessInfinite interface not a valid RandomAccessRange?

2021-12-18 Thread Paul Backus via Digitalmars-d-learn
On Saturday, 18 December 2021 at 19:48:00 UTC, D Lark wrote: Can someone please tell me if this is expected behaviour and what the reasoning is behind this choice? Looks like a bug. I've filed a report on the D issue tracker: https://issues.dlang.org/show_bug.cgi?id=22608

Why does is the RandomAccessInfinite interface not a valid RandomAccessRange?

2021-12-18 Thread D Lark via Digitalmars-d-learn
The following assertion fails: ```dlang assert(isRandomAccessRange!(RandomAccessInfinite!int)); ``` Whereas this one passes: ```dlang assert(isRandomAccessRange!(RandomAccessFinite!int)); ``` I have compiled this using dmd v2.098.0. Can someone please tell me if this is expected behaviour and wh