[graalvm-users] Dynamically calling methods on Interop
Rodrigo Botafogo
rodrigo.a.botafogo at gmail.com
Thu Jun 21 05:58:25 PDT 2018
Yes, that's right.
Thanks
Em qua, 20 de jun de 2018 05:18, Benoit Daloze <eregontp at gmail.com>
escreveu:
> 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/20180621/57a25c88/attachment.html
More information about the GraalVM-Users
mailing list