[Issue 12209] Unable to take address of function nested function
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jan 23 06:08:09 PST 2015
https://issues.dlang.org/show_bug.cgi?id=12209
Vladimir Panteleev <thecybershadow at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thecybershadow at gmail.com
--- Comment #2 from Vladimir Panteleev <thecybershadow at gmail.com> ---
Simpler test case:
void main()
{
gun();
void gun() {}
}
The problem is that gun is forward-referenced, which is not allowed inside
functions, and IIRC Walter said never will.
--
More information about the Digitalmars-d-bugs
mailing list