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



--- Comment #4 from monarchdo...@gmail.com 2013-11-02 02:46:09 PDT ---
(In reply to comment #0)
> I would have expected the following to work:
> 
> int[] d = [1,2,3,4,5,6,7];
> d[] = d.filter!(x => x > 3)[];

I'm surprised filter has opSlice() at all: It's not a range primitive, and is
useless. If anything, it leads to error (as you just tried to use it)

> Error: cannot implicitly convert expression (f.opSlice()) of type
> FilterResult!(__lambda2, int[]) to int[]

opSlice should be removed from filter, or any other range. It only makes sense
for containers (including static arrays), or plain dynamic arrays.

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

Reply via email to