[Issue 8772] DList.remove doesn't work with result of std.range.take

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 6 22:50:49 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8772


Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com


--- Comment #2 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-10-06 22:38:46 PDT ---
Actually, _all_ of the take* functions should work - take, takeExactly,
takeOne, takeNone - but I think that take is pretty much the only one that
works right now, and not all of the functions which should accept it do (hence
the bug report).

Andrei recently expressed the desire to standardize on wrapper ranges providing
access to what the range that they're wrapping when appropriate (though it's
not always appropriate) via a member variable called source (which Take has),
which may or may not make implementing the changes to std.container simpler and
may or may not make it possible for the std.container functions to operate on
more range types than those returned by take*. But the take* family should
definitely all work or std.container is crippled with regards to any of its
member functions which takes a range from the container.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list