Nested functions should be exempt from sequential visibility rules
deadalnix
deadalnix at gmail.com
Tue Apr 3 00:31:09 PDT 2012
Le 03/04/2012 07:38, Nick Sabalausky a écrit :
> 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! ;)
>
This is a +1 .
More information about the Digitalmars-d
mailing list