https://issues.dlang.org/show_bug.cgi?id=8946
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Version|future |D2
--
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
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
http://d.puremagic.com/issues/show_bug.cgi?id=8946
Dmitry Olshansky dmitry.o...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
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
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
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?
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 «
http://d.puremagic.com/issues/show_bug.cgi?id=8946
Andrej Mitrovic andrej.mitrov...@gmail.com changed:
What|Removed |Added
CC|
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
http://d.puremagic.com/issues/show_bug.cgi?id=8946
Jonathan M Davis jmdavisp...@gmx.com changed:
What|Removed |Added
CC|
11 matches
Mail list logo