Regarding State::loadFunction and Value::ProcType #548
Unanswered
27justin
asked this question in
Questions and Answers
Replies: 1 comment 3 replies
-
Hi! If I remember correctly, at the time it was to limit the size of the variant held by AFAICT a I'll see if changing that brings performances up/down/neutral, that shouldn't break anything other than that |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone.
After playing around with ArkScript for a bit in the recent past, I've noticed that the function argument in
State::loadFunction
is aValue(*)(std::vector<Value> &, VM *)
.Is there any specific reason for not using
std::function<>
for this? Using the bare C function pointer prevents the use of using lambda captures, which especially for this use-case I would deem important.Beta Was this translation helpful? Give feedback.
All reactions