[ 
https://issues.apache.org/jira/browse/GROOVY-6519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17757459#comment-17757459
 ] 

Jochen Theodorou commented on GROOVY-6519:
------------------------------------------

Actually this depends a bit on if we want to allow a script base class with 
different constructors than Script uses or not. If we do, then I am against 
this. If we don't then maybe

> removing direct usage of Binding from script
> --------------------------------------------
>
>                 Key: GROOVY-6519
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6519
>             Project: Groovy
>          Issue Type: Sub-task
>            Reporter: Jochen Theodorou
>            Priority: Major
>
> Instead of forcing Script to use Binding as a wrapper always, we can 
> introduce a loose connection by dynamic invocation then. This way it is 
> possible to use any object for the binding and it becomes more like a 
> delegate in Closure. The delegate has of course influence on the semantics 
> here. If a map is used, there won't be an exception in case an unused 
> variable is read in the script for example.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to