yaegi icon indicating copy to clipboard operation
yaegi copied to clipboard

interp: improve internal handling of functions

Open mvertes opened this issue 1 year ago • 0 comments

Up to now functions could be stored as node values in frame (as for interpreter defined functions) or function values, directly callable by the Go runtime. We now always store functions in the later form, making the processing of functions, anonymous closures and methods simpler and more robust. All functions, once compiled are always directly callable, with no further wrapping necessary.

Fixes #1459.

mvertes avatar Oct 11 '22 09:10 mvertes