On 02-08-2012 21:40, Peter Alexander wrote:
Nice update, but broke Derelict2 :-(

Regression: delegates with default arguments are broken (worked in 2.059)


void foo(void delegate(int x = 0) fun)
{
     fun(); // Error: expected 1 function arguments, not 0
}

I think it was decided that this was not a regression, if memory serves. I believe the reasoning was that default parameters on delegates just don't make sense in the general case, so it wasn't worth fixing.

I could be wrong. I can't seem to find the relevant bug. Anyone?

--
Alex Rønne Petersen
a...@lycus.org
http://lycus.org

Reply via email to