On 7/28/2016 1:54 AM, Ethan Watson wrote:
On Thursday, 28 July 2016 at 08:49:35 UTC, Walter Bright wrote:
Do you mean:
void foo();
void foo() { }
?
Exactly this. I've been unable to get it to work.
https://issues.dlang.org/show_bug.cgi?id=16329
The reason it's an enhancement request rather than a bug is that with D's
support for forward referenced functions, having to declare them first followed
later by a definition was deemed unnecessary.
This pattern is, of course, necessary in C/C++ because they do not allow forward
referenced declarations outside of aggregates.