groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: JSR 223 support behavior
Date Mon, 22 May 2017 05:35:53 GMT
On 22.05.2017 06:53, Assia Alexandrova wrote:
> Hi all,
>
> My first time here. I wasn't sure weather to post this to dev list, so
> please let me know if I should!
>
> I'm trying to hook the latest Groovy interpreter to a JVM scripting
> notebook environment (https://github.com/bolerio/seco). At a minimum I
> need good JSR 223 support so that symbols/variables can be shared
> between scripting languages. With Groovy and its built-in JSR 223
> support, it seems like an assignment:
>
> something = 10
>
> is placed into the common scripting context, but not a definition like this:
>
> def something = 10

that is by language design

[...]
> Is this a bug? If not, is there a way to get access to those symbols
> introduced via 'def'. Disclaimer: I'm not a Groovy programmer, just
> trying to learn enough to make this work.

you could write a transform to rewrite the code for those.

But why not simply use it without def?

bye Jochen


Mime
View raw message