Lookhead for nested functions

Amex Amex at gmail.com
Fri Jun 14 05:35:31 UTC 2019


fails:

void foo()
{
    bar();
    void bar() { }
}

passes:

void foo()
{
    void bar() { }
    bar();
}


I realize this may not be a simple solution in all cases but 
surely it can be make to work in such simple cases?






More information about the Digitalmars-d mailing list