Jump to page: 1 2
Thread overview
[Issue 16073] Ranges without opDollar not supported
May 25, 2016
Jack Stouffer
May 31, 2016
Jack Stouffer
Dec 24, 2016
Jack Stouffer
Dec 24, 2016
greenify
Jan 20, 2017
Jonathan M Davis
Dec 17, 2022
Iain Buclaw
May 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16073

Jack Stouffer <jack@jackstouffer.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jack@jackstouffer.com

--- Comment #1 from Jack Stouffer <jack@jackstouffer.com> ---
I'd imagine this is an issue throughout Phobos. All functions that use isRandomAccessRange need to be checked as well.

--
May 31, 2016
https://issues.dlang.org/show_bug.cgi?id=16073

--- Comment #2 from Jack Stouffer <jack@jackstouffer.com> ---
https://github.com/dlang/phobos/pull/4383

--
June 02, 2016
https://issues.dlang.org/show_bug.cgi?id=16073

--- Comment #3 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/a818c7e059bf0e37609c7030b8306daf54909beb [Issue 16073] Fix incorrect uses of random access range primitives in std.algorithm.iteration

https://github.com/dlang/phobos/commit/3a1db06f41eca48e1b1b46ca05bb221c01714160 [Issue 16073] Fix incorrect uses of random access range primitives in std.algorithm.mutation

https://github.com/dlang/phobos/commit/74398e70cf79acab6a352e7bbec614ce2f91dffb [Issue 16073] Fix incorrect uses of random access range primitives in std.algorithm.searching

https://github.com/dlang/phobos/commit/e216c10b2ce08cb8ae5c64983a2f24367f4b86e4 Merge pull request #4383 from JackStouffer/issue16073

Partial Fix for Issue 16073

--
June 14, 2016
https://issues.dlang.org/show_bug.cgi?id=16073

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/94d74ac8f5772e3e32f7c2e2b4b59fd0783a6ad5 [Issue 16073] Fix incorrect uses of random access range primitives in std.algorithm.sorting

https://github.com/dlang/phobos/commit/c5bb43ce54d7feb244ba032c43aecd7aa7c9356a Merge pull request #4425 from JackStouffer/issue16073

Partial Fix for Issue 16073 (part 2)

--
October 01, 2016
https://issues.dlang.org/show_bug.cgi?id=16073

--- Comment #5 from github-bugzilla@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/a818c7e059bf0e37609c7030b8306daf54909beb [Issue 16073] Fix incorrect uses of random access range primitives in std.algorithm.iteration

https://github.com/dlang/phobos/commit/3a1db06f41eca48e1b1b46ca05bb221c01714160 [Issue 16073] Fix incorrect uses of random access range primitives in std.algorithm.mutation

https://github.com/dlang/phobos/commit/74398e70cf79acab6a352e7bbec614ce2f91dffb [Issue 16073] Fix incorrect uses of random access range primitives in std.algorithm.searching

https://github.com/dlang/phobos/commit/e216c10b2ce08cb8ae5c64983a2f24367f4b86e4 Merge pull request #4383 from JackStouffer/issue16073

https://github.com/dlang/phobos/commit/94d74ac8f5772e3e32f7c2e2b4b59fd0783a6ad5 [Issue 16073] Fix incorrect uses of random access range primitives in std.algorithm.sorting

https://github.com/dlang/phobos/commit/c5bb43ce54d7feb244ba032c43aecd7aa7c9356a Merge pull request #4425 from JackStouffer/issue16073

--
October 09, 2016
https://issues.dlang.org/show_bug.cgi?id=16073

--- Comment #6 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/06c9dca2daf3edfde85ba01a9d22d842621fad1c [Issue 16073] Fix incorrect uses of random access range primitives in std.range.package

https://github.com/dlang/phobos/commit/86ef3a224ed05bfe52b63caedc53ebdcf5be513e Merge pull request #4463 from JackStouffer/issue16073

Partial Fix for Issue 16073 (part 3)

--
December 24, 2016
https://issues.dlang.org/show_bug.cgi?id=16073

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrei@erdani.com

--- Comment #7 from Andrei Alexandrescu <andrei@erdani.com> ---
I think we should require opDollar to be implemented instead.

--
December 24, 2016
https://issues.dlang.org/show_bug.cgi?id=16073

--- Comment #8 from Jack Stouffer <jack@jackstouffer.com> ---
(In reply to Andrei Alexandrescu from comment #7)
> I think we should require opDollar to be implemented instead.

That would be a breaking change, as suddenly hasLength would fail for lots of user types.

--
December 24, 2016
https://issues.dlang.org/show_bug.cgi?id=16073

--- Comment #9 from Andrei Alexandrescu <andrei@erdani.com> ---
We can leave hasLength as is for the time but at least new algorithms should just use $. All of these useless options left to sloppy range implementations don't bring value.

--
December 24, 2016
https://issues.dlang.org/show_bug.cgi?id=16073

greenify <greeenify@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greeenify@gmail.com

--- Comment #10 from greenify <greeenify@gmail.com> ---
> All of these useless options left to sloppy range implementations don't bring value.

This has probably been proposed before, but what about letting the compiler insert an opDollar alias if length is defined? This should greatly help to avoid sloppy implementation differences and one can still opt to use the opDollar overloads for superior performance.

--
« First   ‹ Prev
1 2