exit_prog_nested.lua
LUA
--[[
Demonstrate nested program exit.
NOTE: This program requires the script
'exit_prog.lua' to be present on Lumorphix as
a program.
--]]
main_program_name = "Exit Program Nested Example"
-- Dependencies
unused_unassigned = run_program("exit_prog.lua")
-- NOTE: we shouldn't end up here!
import("sleep")
for i=1,10 do
print("How did I get here?!")
sleep(2)
end
print("Program end: "..main_program_name)