[graalvm-users] Dynamically calling methods on Interop

Rodrigo Botafogo rodrigo.a.botafogo at gmail.com
Tue Jun 19 11:13:29 PDT 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/graalvm-users/attachments/20180619/17de6cf2/attachment.html 


More information about the GraalVM-Users mailing list