groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <eric.mil...@thomsonreuters.com>
Subject RE: Get reference to enclosing closure
Date Mon, 20 Nov 2017 21:09:04 GMT
When you rewrite to this form:


with(list) {

  SpockRuntime.verifyMethodCondition(this.getThisObject(), "contains", [1])
}

You've esentially frozen your choice of delegate, owner or this.  The dynamic resolution of
"implicit this" to one of those is no longer going to happen.  I guess you'd need to re-implement
the resolution strategy.
Mime
View raw message