> 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.

Reply via email to