www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Nested functions should be exempt from sequential visibility rules

reply "Nick Sabalausky" <a a.a> writes:
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! ;)
Apr 02 2012
parent "Nick Sabalausky" <a a.a> writes:
Sorry, I didn't mean this to go into "D.announce". Reposting in the proper 
place... Can this one be deleted? 
Apr 02 2012