www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Cannot we use std.bind now?

Thanks for your works.
I tried a code such as the bottom.
However, compiling it failed.
Cannot we use std.bind now?
--

import std.bind, std.stdio;
bool less(int a, int b)
{
    return a < b;
}
void main()
{
    writefln("10 < 20 =? ", less(10, 20));

    auto less10 = bind(&less, _0, 10);
    writefln(" 5 < 10 =? ", less10(5));

    auto greater10 = bindAlias!(less)(10, _0);
    writefln(" 5 > 10 =? ", greater10(5));
}


C:\D\dmd\src\phobos\std\bind.d(313): alias
std.bind.minNumArgs_impl!(less,bool(*)(int a, int b)).loop!(1).res cannot
alias an expression 2
Jul 23 2007