[Issue 14694] Functions nested within functions need their body in the generated .di file

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jun 17 07:49:48 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14694

--- Comment #3 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to Walter Bright from comment #1)
> (In reply to Andrei Alexandrescu from comment #0)
> > Obviously that's not going to work for more than one reason :o).
> 
> Instead of asking people to carefully examine moderately complex code
> looking for a mistake, and wondering how many and which you mean, please be
> explicit.

Well it won't work because it's impossible to define a nested function outside
the function it's in. So the definition must go there.

--


More information about the Digitalmars-d-bugs mailing list