[Issue 23243] std.range.isInfinite should accept ranges with non-static empty methods

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 13 21:37:18 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23243

Paul Backus <snarwin+bugzilla at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #1 from Paul Backus <snarwin+bugzilla at gmail.com> ---
On second thought, this is not possible, because (1) we cannot check the return
value of .empty for all possible instances of R, and (2) even if .empty returns
false for every instance tested, we can never be sure it will not return true
for some other instance we did not test.

--


More information about the Digitalmars-d-bugs mailing list