{"action":"opened","issue":{"url":"https://api.github.com/repos/graalvm/sulong/issues/867","repository_url":"https://api.github.com/repos/graalvm/sulong","labels_url":"https://api.github.com/repos/graalvm/sulong/issues/867/labels{/name}","comments_url":"https://api.github.com/repos/graalvm/sulong/issues/867/comments","events_url":"https://api.github.com/repos/graalvm/sulong/issues/867/events","html_url":"https://github.com/graalvm/sulong/issues/867","id":352737826,"node_id":"MDU6SXNzdWUzNTI3Mzc4MjY=","number":867,"title":"Polyglot docs missing some detail","user":{"login":"mikehearn","id":971089,"node_id":"MDQ6VXNlcjk3MTA4OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/971089?v=4","gravatar_id":"","url":"https://api.github.com/users/mikehearn","html_url":"https://github.com/mikehearn","followers_url":"https://api.github.com/users/mikehearn/followers","following_url":"https://api.github.com/users/mikehearn/following{/other_user}","gists_url":"https://api.github.com/users/mikehearn/gists{/gist_id}","starred_url":"https://api.github.com/users/mikehearn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikehearn/subscriptions","organizations_url":"https://api.github.com/users/mikehearn/orgs","repos_url":"https://api.github.com/users/mikehearn/repos","events_url":"https://api.github.com/users/mikehearn/events{/privacy}","received_events_url":"https://api.github.com/users/mikehearn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-21T22:42:59Z","updated_at":"2018-08-21T22:42:59Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"1. It's not clear to me if the \"convert polyglot value to a struct\" trick can handle function pointers inside the struct to emulate OO method calls. The header file says accessing members is equivalent to get/put member, so perhaps not, but it seems an obvious feature to have? Then you can map objects to structs (or perhaps even to C++ classes which would be neat)\r\n\r\n2. The docs go into a lot more detail than the website does and it's annoying to figure out how to get to polyglot.h from the tiny example on graalvm.org - it'd be great to have more thorough examples on the website."}}
{"actor":{"display_login":"mikehearn"}}