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

9 lines
214 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
-- 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