https://issues.dlang.org/show_bug.cgi?id=15839

--- Comment #5 from Jacob Carlborg <d...@me.com> ---
(In reply to Kenji Hara from comment #4)

> However... of course it's not stable. And as far as I know, there's no way
> to know the number of chains up to reach wanting enclosing scope.

So the best approach would be to pass in the outer reference to the constructor
when creating the anonymous class and use that instead of "this.outer"?

--

Reply via email to