[Issue 8946] « any » function does not what it should do

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

[Issue 8946] « any » function does not what it should do

2012-11-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8946 --- Comment #10 from Dimitri Sabadie dimitri.saba...@gmail.com 2012-11-04 04:11:05 PST --- (In reply to comment #9) If there's a measurable difference in efficiency between calling find (and checking for empty) and reimplementing find inside

[Issue 8946] � any � function does not what it should do

2012-11-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8946 --- Comment #11 from Jonathan M Davis jmdavisp...@gmx.com 2012-11-04 04:26:54 PST --- C++'s find takes a pair of iterators indicating the beginning and ending of a range and returns an iterator to the element found - i.e. the new beginning of

[Issue 8946] � any � function does not what it should do

2012-11-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8946 Dmitry Olshansky dmitry.o...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 8946] « any » function does not what it should do

2012-11-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8946 --- Comment #2 from Dimitri Sabadie dimitri.saba...@gmail.com 2012-11-03 14:09:28 PDT --- (In reply to comment #1) Ever heard of slicing an array in D? Check this out: http://dlang.org/d-array-article.html Dig down in

[Issue 8946] « any » function does not what it should do

2012-11-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8946 --- Comment #3 from Dmitry Olshansky dmitry.o...@gmail.com 2012-11-03 14:18:25 PDT --- Ok, my argument wasn’t worth it I agree. But, why any would use such a function where a simple loop and a test will do it? Because find is a simple

[Issue 8946] « any » function does not what it should do

2012-11-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8946 --- Comment #4 from Dimitri Sabadie dimitri.saba...@gmail.com 2012-11-03 14:35:35 PDT --- (In reply to comment #3) Ok, my argument wasn’t worth it I agree. But, why any would use such a function where a simple loop and a test will do it?

[Issue 8946] « any » function does not what it should do

2012-11-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8946 --- Comment #6 from Dimitri Sabadie dimitri.saba...@gmail.com 2012-11-03 16:45:23 PDT --- (In reply to comment #5) (In reply to comment #4) ... There’s a popFront() function, so why would it be the correct way to search? Reusing a «

[Issue 8946] « any » function does not what it should do

2012-11-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8946 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added CC|

[Issue 8946] « any » function does not what it should do

2012-11-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8946 --- Comment #8 from timon.g...@gmx.ch 2012-11-03 17:38:29 PDT --- (In reply to comment #6) ... The issue is: a function that is designed to « search » for something is excepted to return a boolean, not top popFront() [...] and returns the

[Issue 8946] � any � function does not what it should do

2012-11-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8946 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added CC|