RosettaCodeData/Task/Compile-time-calculation/Lingo/compile-time-calculation.lingo
2023-07-01 13:44:08 -04:00

8 lines
214 B
Text

-- create new (movie) script at runtime
m = new(#script)
-- the following line triggers compilation to bytecode
m.scriptText = "on fac10"&RETURN&"return "&(10*9*8*7*6*5*4*3*2)&RETURN&"end"
put fac10()
-- 3628800