dmd 1.075 and 2.060 release
Andrej Mitrovic
andrej.mitrovich at gmail.com
Thu Aug 2 12:50:23 PDT 2012
On 8/2/12, Walter Bright <newshound2 at 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.
More information about the Digitalmars-d-announce
mailing list