[Issue 10468] New: Regression (2.063): Lockstep no longer works with iota

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 24 15:02:46 PDT 2013


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

           Summary: Regression (2.063): Lockstep no longer works with iota
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Phobos
        AssignedTo: andrej.mitrovich at gmail.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-06-24 15:02:45 PDT ---
-----
module test;
import std.range;

void main()
{
    foreach (x, y; lockstep(iota(0, 10), iota(0, 10)))
    {
    }
}
-----

$ dmd test.d

C:\DMD\dmd2\windows\bin\..\..\src\phobos\std\range.d(4716): Error: delegate dg
(ref int, ref int) is not callable using argument types (int, int)
test.d(6): Error: opApply() function for Lockstep!(Result, Result) must return
an int
C:\DMD\dmd2\windows\bin\..\..\src\phobos\std\range.d(4717): Error: delegate dg
(uint, ref int, ref int) is not callable using argument types (uint, int, int)

This is introduced as a result of my refactor pull, which added 'ref' to the
parameter types by mistake:
https://github.com/D-Programming-Language/phobos/pull/1124

-- 
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