Nested function declarations

bearophile bearophileHUGS at lycos.com
Sat Jan 29 06:30:38 PST 2011


Tomek S.

> > What is the purpose of nested function declarations in D? Is it a good idea to just disallow them?
> 
> 1. Helper functions don't clutter the namespace.
> 2. Nested functions can access the outer function's stack frame.

My question was not about "nested functions" but about "nested (empty) function declarations".

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list