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

Reply via email to