PyD
Ellery Newcomer
ellery-newcomer at utulsa.edu
Thu Feb 23 21:52:09 PST 2012
On 02/23/2012 11:40 PM, Ellery Newcomer wrote:
> Well, I can't make any promises, but you can try this:
>
> https://bitbucket.org/ariovistus/pyd
>
> it seems not to be compiling with the 2.058 front end, but I think it
> should with the 2.057 front end and ldc.
crumb, I take that back
Anyone know why following code gives
test.d(5): Error: f.fn() is not an lvalue
import std.traits;
template _py(Dg){
Dg func(){
F f = new F();
return &f.fn!(ReturnType!Dg);
}
}
class F{
Tr fn(Tr, T ...)(T t){
}
}
void main(){
alias _py!(void delegate()) tz;
}
More information about the Digitalmars-d
mailing list