Anonymous user
Closures/Value capture: Difference between revisions
m
→{{header|Lingo}}
(Lingo added) |
|||
Line 1,032:
property _code
-- code must start with "res="
on new (me, code)
me._code = code
Line 1,040 ⟶ 1,041:
----------------------------------------
-- If custom arguments were passed, evaluate them in the current context.
-- Note: in the code passed to the constructor they have to be
-- as arg[1], arg[2], ...
arg = []
repeat with i = 3 to the paramCount
|