www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13964] New: InputRange!T doesn't have save method


          Issue ID: 13964
           Summary: InputRange!T doesn't have save method
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: luis luismarques.eu

This fails (due to a lack of a save method?):

import std.range;

void main()
    InputRange!int range = inputRangeObject([1, 2, 3]);
    auto range2 = range.save();

/d812/f275.d(6): Error: template std.array.save cannot deduce function from
argument types !()(InputRange!int), candidates are:
/opt/compilers/dmd2/include/std/array.d(429):        std.array.save(T)(T[] a)


Jan 09 2015