Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3ACB9200C7C for ; Mon, 22 May 2017 07:36:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 39312160BCF; Mon, 22 May 2017 05:36:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 81CE6160BC5 for ; Mon, 22 May 2017 07:36:00 +0200 (CEST) Received: (qmail 96255 invoked by uid 500); 22 May 2017 05:35:59 -0000 Mailing-List: contact users-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.apache.org Delivered-To: mailing list users@groovy.apache.org Received: (qmail 96244 invoked by uid 99); 22 May 2017 05:35:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 May 2017 05:35:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EC094190D4E for ; Mon, 22 May 2017 05:35:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.497 X-Spam-Level: X-Spam-Status: No, score=-3.497 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-2.796, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id rshUKd1AoGzF for ; Mon, 22 May 2017 05:35:57 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 73E6F5FDFE for ; Mon, 22 May 2017 05:35:56 +0000 (UTC) Received: from [192.168.1.4] ([89.14.110.176]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lj25i-1dol7724ha-00dJ21 for ; Mon, 22 May 2017 07:35:55 +0200 Subject: Re: JSR 223 support behavior To: users@groovy.apache.org References: From: Jochen Theodorou Message-ID: <592278B9.7070600@gmx.org> Date: Mon, 22 May 2017 07:35:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:DCEkDOTGssf6MKLawuEkAHxA/3Z23UvWzYtUDzqAC0NeEeYbPZi 7l6abW1EEKeV3ZPyJODKNBVm9GLfFmoyLdsr/eRVNAGw8IkIlad/tfqM1m/iC8SXCgiS9F8 h31j9o/liK8srAsozsIqqC5uF4iN3yVxkcWTHft7cQu+/MUaDUYkEc73K5AbSP+1LWjnAJ/ qlhxxnyUmi8tmEAv2DSZQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:n6cRkM1q1ZE=:BObMBKsP3JUKOkxd9ur6V5 odU2cqxTijMkSF6IkCElkUHN6hx64m6qHbf17SGu7wB6tYHYydLrjHPkk/3aDBiUx3quGgBKG XvHCwNW1WTq+XlFRbH7kg+gYR72mCsESRfyrCThozfMUaL97cKj8iGMUWDpMLgS27gHqTAx77 X+Knp4sQRtMNCd2ngLtWxBRKJRQsxYTyKlMbnMCP8MR6KnBpssJp88uGE2kRv/zAapyi7OX4g SyuTvB4INCslJfzRo8D5Ye6lN3t9VIfYfD2wim6X1uAbDNg3jsJNbxlvc7zE9krIEx4jUSHmV W0m9ST436hAnrhug2rCn2IgZ0zddXg25PA5Ne7FcDi/O+fWcpcnEf52rDiZ9jnijtRxcIzat/ PjCOm0PFKEdfL5F7xkNvPiDd86x18CTAq7cP3/l1js3rijNLa6R+4rEZ5myUWdlRH/1yXwMMq j0iAng/y+hvVBiw8Ou/EzxGUCJVhv68JmkSxVmNGOlrdg6kreH+Sf/bO7x8WqGS9Pet0T9AAO qKx+cBxVbBCeHPGzGWLS6CkdJXdxGhotLxw22yoqsNuApvNYS6b4d6XpL/38jMajbhAo0NCRJ faOyXZwtFlV6kI8AxVsr4QsNMi5cBYbfmgLjvDNprA9W/60FFJY/ZhPwVUCnvwLkzSOJQM1/c ycZTTaFHJlRPowXUkjgW9xoy5vLqZ7efR8qW13RpT6I8Zj7q/DzGPLb5Jfv4MfHporl1B1T0u JliSAALaExcCNllR0CfP0sK+w75a4XY4lRkAo2yIW6KUQloCgdOrD0ztEqeEXNnN3uXqQoKF/ KW9Mliy archived-at: Mon, 22 May 2017 05:36:01 -0000 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