Lookhead for nested functions
FeepingCreature
feepingcreature at gmail.com
Fri Jun 14 06:00:13 UTC 2019
On Friday, 14 June 2019 at 05:35:31 UTC, Amex wrote:
> I realize this may not be a simple solution in all cases but
> surely it can be make to work in such simple cases?
Nope. Consider the following code:
int foo()
{
return bar();
int i = 5;
int bar() { return i; }
}
Nested functions are inextricably bound to function scope, and
function scope is strictly sequential.
More information about the Digitalmars-d
mailing list