Lookhead for nested functions
Amex
Amex at gmail.com
Sat Jun 15 10:16:04 UTC 2019
On Friday, 14 June 2019 at 06:00:13 UTC, FeepingCreature wrote:
> 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; }
> }
>
There is nothing wrong with this.
More information about the Digitalmars-d
mailing list