Skip to content
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

replacing values of the compiled script #72

Merged
merged 2 commits into from
Feb 1, 2019
Merged

replacing values of the compiled script #72

merged 2 commits into from
Feb 1, 2019

Conversation

d5
Copy link
Owner

@d5 d5 commented Feb 1, 2019

This change is to allow replacing value of global variables after the script is compiled.

  • add script.Compiled.Set function so compiled script can replace value of global variables
  • fix VM.Run() to properly reset its states so it can run multiple times without re-compiling
  • update documentation

@d5 d5 merged commit 0d99cca into master Feb 1, 2019
@d5 d5 deleted the compiledset branch February 1, 2019 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant