Skip to content
This repository has been archived by the owner on Apr 30, 2022. It is now read-only.

calling a native go function #14

Open
glycerine opened this issue Dec 29, 2014 · 2 comments
Open

calling a native go function #14

glycerine opened this issue Dec 29, 2014 · 2 comments
Assignees

Comments

@glycerine
Copy link

Hi Sebastian,
How hard would it be to call native go functions via reflection from go-eval?
Thanks!
Jason

@sbinet sbinet self-assigned this Dec 30, 2014
@sbinet
Copy link
Owner

sbinet commented Dec 30, 2014

I don't think it would be too hard (famous last words). I mean, delve does it for debugging, right ?
the thing is, ATM, it would be a bit useless as one would have to import+compile+link the package where that function lives in into go-eval (or the main of your process) to be able to call it, as there is no dynamic code loading (yet. perhaps for 1.5?)

well, I suppose it wouldn't hurt to already provide the fundation work for this mechanism...

@alphacentory
Copy link

Is this possible if so, any direction would be fantastic.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants