On 02-08-2012 21:44, Alex Rønne Petersen wrote:
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?
Oh, Walter already replied with the relevant URL. :)
--
Alex Rønne Petersen
a...@lycus.org
http://lycus.org