declaration of inner function is already defined

Adam D. Ruppe destructionator at gmail.com
Wed May 13 12:58:11 UTC 2020


On Wednesday, 13 May 2020 at 12:45:06 UTC, Andrey wrote:
> Why this works:

It's just defined that way. Local functions follow local variable 
rules - must be declared before use and names not allowed to 
overload each other.

There might be a deeper reason too but like that's the main 
thing, they just work like any other local vars.


More information about the Digitalmars-d-learn mailing list