[Issue 8469] isSorted fails with predicate a.length b.length ? true : a b

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8469 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --

[Issue 8469] isSorted fails with predicate a.length b.length ? true : a b

2012-08-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8469 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 8469] isSorted fails with predicate a.length b.length ? true : a b

2012-08-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8469 --- Comment #10 from github-bugzi...@puremagic.com 2012-08-04 18:47:12 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 8469] isSorted fails with predicate a.length b.length ? true : a b

2012-07-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8469 --- Comment #9 from bearophile_h...@eml.cc 2012-07-31 02:01:53 PDT --- (In reply to comment #8) It's very simple, if isSorted finds two adjacent elements a, b that satisfy pred(b, a) it can also check whether pred(a, b) and assert if that's

[Issue 8469] isSorted fails with predicate a.length b.length ? true : a b

2012-07-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8469 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added CC|

[Issue 8469] isSorted fails with predicate a.length b.length ? true : a b

2012-07-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8469 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc ---

[Issue 8469] isSorted fails with predicate a.length b.length ? true : a b

2012-07-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8469 --- Comment #3 from Andrei Alexandrescu and...@metalanguage.com 2012-07-30 07:28:01 PDT --- What did I just read? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because:

[Issue 8469] isSorted fails with predicate a.length b.length ? true : a b

2012-07-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8469 --- Comment #4 from bearophile_h...@eml.cc 2012-07-30 08:09:53 PDT --- (In reply to comment #3) What did I just read? An insightful answer and a solution to your problem :-) -- Configure issuemail:

[Issue 8469] isSorted fails with predicate a.length b.length ? true : a b

2012-07-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8469 --- Comment #6 from bearophile_h...@eml.cc 2012-07-30 10:37:10 PDT --- (In reply to comment #5) I definitely think that it makes the most sense to make isSorted assert on bad predicates and have it clearly state that predicate was bad

[Issue 8469] isSorted fails with predicate a.length b.length ? true : a b

2012-07-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8469 --- Comment #7 from Jonathan M Davis jmdavisp...@gmx.com 2012-07-30 10:39:15 PDT --- How do you do this? I don't know, but from Andrei's comment, he seems to think that it's possible. -- Configure issuemail:

[Issue 8469] isSorted fails with predicate a.length b.length ? true : a b

2012-07-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8469 --- Comment #8 from Andrei Alexandrescu and...@metalanguage.com 2012-07-30 10:47:16 PDT --- It's very simple, if isSorted finds two adjacent elements a, b that satisfy pred(b, a) it can also check whether pred(a, b) and assert if that's also