digitalmars.D.learn - foo is not an lvalue
- Ellery Newcomer (11/11) Apr 17 2013 void main() {
- bearophile (5/8) Apr 17 2013 I think you need to write:
- Ellery Newcomer (2/13) Apr 17 2013 wouldn't that be infinitely recursing template instantiation?
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?
Apr 17 2013
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
Apr 17 2013
On 04/17/2013 06:02 PM, bearophile wrote:Ellery Newcomer:wouldn't that be infinitely recursing template instantiation?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
Apr 17 2013