Nested functions should be exempt from sequential visibility rules

Nick Sabalausky a at a.a
Mon Apr 2 22:36:00 PDT 2012


Regarding this:

http://d.puremagic.com/issues/show_bug.cgi?id=790

I submit that nested functions should be exempt from the usual sequential 
visibility rules. (Therefore, mutually recursive nested functions would 
become possible.)

Or at the very *least*, this horrific C-like workaround should be possible:

void foo()
{
    void b();
    void a() {...};
    void b() {...};
}

...Flame away! ;)




More information about the Digitalmars-d-announce mailing list