Trying Multiple Aggregate reduce
Ali Çehreli
acehreli at yahoo.com
Mon Mar 31 15:19:27 PDT 2014
On 03/31/2014 03:13 PM, bearophile wrote:
> Nordlöw:
>
>> I'm trying to figure out how to use reduce with multiply funs.
Could someone please check the following. It looks like a compiler bug
on git head (DMD64 D Compiler v2.066-devel-75159e4):
import std.algorithm;
int foo(int value)
{
return value;
}
void main()
{
reduce!(foo, foo)(tuple(0, 0), [ 1 ]);
}
statement.c:274: ErrorStatement::ErrorStatement(): Assertion
`global.gaggedErrors || global.errors' failed.
Ali
More information about the Digitalmars-d-learn
mailing list