On 8/3/2012 4:50 AM, Andrej Mitrovic wrote:
On 8/2/12, Walter Bright <newshou...@digitalmars.com> wrote:
Known issue, it's an inevitable result (it never worked right anyway):
http://d.puremagic.com/issues/show_bug.cgi?id=8454
P.S. You might want to monitor the beta releases.
I've posted about that exact Derelict case in Issue 3866 during the
betas, but nobody replied.
But a library solution could be made if one wants to use an inner
alias. Maybe we even have one in Phobos? Something like:
void foo(void delegate(string s, bool isTrue) dg)
{
alias DefVal!(dg, true) deg;
// use deg as if it were dg() with default for 'isTrue'
}
Not the most readable code.. but it's similar to curry (except
backwards) I guess.
It's a trivial fix, anyway. I fixed it in Derelict 3 some time ago.
Didn't think about Derelict 2.