[graalvm-users] Dynamically calling methods on Interop
Benoit Daloze
eregontp at gmail.com
Wed Jun 20 01:17:53 PDT 2018
Hello,
I assume the calling language is Ruby, right?
Then you should be able to use send or __send__.
Best regards,
Benoit
On Tue, Jun 19, 2018 at 8:13 PM, Rodrigo Botafogo <
rodrigo.a.botafogo at gmail.com> wrote:
> Hello,
>
> I can call methods on a Interop pointer as follows:
>
> var2 = R.c("Hello", "beautiful", "world!")
> var2.size
>
> However, let’s say that I want to dynamically create the call. How do I do
> it?
>
> var2["size"]
>
> > NameError:
> > Unknown identifier: size
>
> var2.call("size")
> > RuntimeError:
> > Message not supported: EXECUTE (UnsupportedMessageException)
>
> How do I do?
>
> --
> Rodrigo Botafogo
>
>
> _______________________________________________
> GraalVM-Users mailing list
> GraalVM-Users at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/graalvm-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/graalvm-users/attachments/20180620/9ed2737a/attachment.html
More information about the GraalVM-Users
mailing list