-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call an interpreted function #153
Comments
This is a duplicate of #130. Unfortunately what you want to do is not at all straight forward.(I recall having an even more extensive discussion of the issues involved in another bug, but I can't find it at the moment.) It is possible, but it entails writing the native function as a state machine which will be invoked multiple times:
The interpreter in Code City, which was originally forked from this one, has been modified with various mechanisms to facilitate this; an example of their usage can be seen in the definition of String(), which calls user-supplied See also #147, which is related but would not by itself solve your particular issue. |
Thank you very much for all the information. |
[moved my comment to 147#1211911798] |
Hello,
I have the following Javascript code that I am interpreting using your library:
callback(function(x, y) { return x < y; });
I had setup a wrapper function this way:
I want to call the function passed to
callback()
inside thecallback_wrapper()
(**1).Is it possible?
How can I do it?
Thanks in advance,
The text was updated successfully, but these errors were encountered: