www.digitalmars.com         C & C++   DMDScript  

D - Re: Other Modern Features

 (a) = someFunc(10);

 Further to that, how would nested functions work?
 (int) = someFunc(int, int, int)
 (int, int, int) = foo(float)

 (a) = someFunc(foo(10.0));

Nesting for the time being should not be allowed. The function should return a parameterized rvalue ready for assignment to a suitable lvalue. If a compelling case arises this could be explored.

How bout this: (a) = someFunc( (int, int, int) = foo(float) ) ? could just makin it more explicit work ?
Dec 02 2003