> void main()
> {
> auto foo = (int x = 10){ /* */ }
> void delegate() bar = { return foo(); }
> }
>
> the compiler could in theory just automatically insert a thunk like
> this.That sounds reasonable.
> void main()
> {
> auto foo = (int x = 10){ /* */ }
> void delegate() bar = { return foo(); }
> }
>
> the compiler could in theory just automatically insert a thunk like
> this.That sounds reasonable.