[graalvm-users] fastR bug?
Chris Seaton
chris.seaton at oracle.com
Mon Oct 22 14:35:22 PDT 2018
I think that’s expected - the same thing happens with a normal #eval
eval("a1 = [1, 2, 3, 4]")
eval("puts a1”)
Each eval is its own local scope.
The exception having the internal class name is probably an issue though.
Chris
> On 22 Oct 2018, at 13:18, Rodrigo Botafogo <rodrigo.a.botafogo at gmail.com> wrote:
>
> I'm running the following simple R script with interop:
>
> eval.polyglot("ruby", "a1 = [1, 2, 3, 4]")
> eval.polyglot("ruby", "puts a1")
>
> The result is a crash with the log:
>
> Mon Oct 22 17:13:44 BRT 2018
> org.truffleruby.language.control.RaiseException: undefined local variable or method `a1' for main:Object (NameError)
> Caused by: Attached Guest Language Frames (2)
>
> Shouldn't variable a1 persists between the two polyglot calls?
>
>
> Thanks!
>
> --
> Rodrigo Botafogo
>
> _______________________________________________
> GraalVM-Users mailing list
> GraalVM-Users at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/graalvm-users
More information about the GraalVM-Users
mailing list