when there are nested closures as a part of the DSL the DSL users still expect the owner is the owner of the very first closure (the surrounding object) not the n-1 closure.
I changed stuff in the last release to delegate first, which probably caused this issue. I'll read your suggestions since I've never run into a good solution for the scoping issue. Thanks.
when there are nested closures as a part of the DSL the DSL users still expect the owner is the owner of the very first closure (the surrounding object) not the
n-1
closure.feel free to use https://github.com/jasanspace/groovy-closure-support
I'm working on a series about Groovy Builders where I'm explaining this more thoroughly but it is not available yet.