Trouble with lockstep
Ali Çehreli
acehreli at yahoo.com
Mon Jun 24 09:03:16 PDT 2013
On 06/24/2013 07:05 AM, Craig Dillabaugh wrote:
> The following is a minimal example:
Further reduced:
import std.range;
void main()
{
lockstep(iota(0, 10), [ 1 ]);
}
Strangely, the error message points at two comment lines in my
installation of 2.063:
/usr/include/dmd/phobos/std/range.d(4716): Error: delegate dg (ref int,
ref int) is not callable using argument types (int, int)
/usr/include/dmd/phobos/std/range.d(4717): Error: delegate dg (ulong,
ref int, ref int) is not callable using argument types (ulong, int, int)
Lines 4716 and 4717 are the two lines of the following comment:
// For generic programming, make sure Lockstep!(Range) is well defined for a
// single range.
template Lockstep(Range)
{
alias Range Lockstep;
}
Ali
More information about the Digitalmars-d-learn
mailing list