It worked on 2.056, and fails now. Definitely a bug.
Anyone want to try that divide-and-conquer git thing?
---------------------------
template ParameterTypeTuple(func)
{
static if (is(func Fptr : Fptr*) && is(Fptr P == function)
alias P ParameterTypeTuple;
else
static assert(0, "argument has no parameters");
}
extern(Windows) alias void function() fpw_t;
alias void function(fpw_t fp) cb_t;
//extern(Windows)
void bar(ParameterTypeTuple!(cb_t) args) {
pragma (msg, "TFunction1: " ~ typeof(args[0]).stringof);
}
extern(Windows) void foo() { }
void test()
{
bar(&foo);
}
----------------------------------------
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta