On 04/17/2013 06:02 PM, bearophile wrote:
Ellery Newcomer:
dmd from master (a few days ago) gives:
Error: foo()() is not an lvalue
wut?
I think you need to write:
auto a = &foo!();
Bye,
bearophile
wouldn't that be infinitely recursing template instantiation?
Ellery Newcomer:
dmd from master (a few days ago) gives:
Error: foo()() is not an lvalue
wut?
I think you need to write:
auto a = &foo!();
Bye,
bearophile
void main() {
foo!();
}
template foo( ) {
void foo() {
auto a = (&foo);
}
}
dmd from master (a few days ago) gives:
Error: foo()() is not an lvalue
wut?