We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After 48e0bbb, the following code says nothing:
int main(int argc, char **argv) { mrb_state *mrb = mrb_open(); mrb_value code = mrb_str_new_cstr(mrb, "puts :hoge"); mrb_funcall(mrb, mrb_top_self(mrb), "eval", 1, code); mrb_close(mrb); }
while before that commit (as far as I know at 4325707), it output hoge, which is expected behavior.
hoge
I looked eval.c and vm.c, then I found it's not designed to call eval directly via mrb_funcall and others. Is this change what you intended?
eval
FYI: I found the following workaround works well (but looks bad)
mrb_value proc = mrb_load_string(mrb, "Proc.new do |code| eval code end"); mrb_funcall(mrb, proc, "call", 1, code);
The text was updated successfully, but these errors were encountered:
fca17b4
No branches or pull requests
After 48e0bbb, the following code says nothing:
while before that commit (as far as I know at 4325707), it output
hoge
, which is expected behavior.I looked eval.c and vm.c, then I found it's not designed to call
eval
directly via mrb_funcall and others. Is this change what you intended?FYI: I found the following workaround works well (but looks bad)
The text was updated successfully, but these errors were encountered: