[Issue 11415] Assign range to array
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Nov  2 02:46:13 PDT 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=11415
--- Comment #4 from monarchdodra at 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list