RosettaCodeData/Task/Compile-time-calculation/Lingo/compile-time-calculation.lingo

9 lines
214 B
Plaintext

-- 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