[Issue 14619] foreach implicitly slices ranges
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sun May 24 15:56:10 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=14619
Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |issues.dlang at jmdavisProg.co
                   |                            |m
--- Comment #1 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
Well, regardless of whether opSlice should be called on a type which is already
usable with foreach, it's a bug for RefRange to define opSlice with no
parameters, because that's not an operation that the range API supports.
--
    
    
More information about the Digitalmars-d-bugs
mailing list