1. Re: Anybody Interested in this...
- Posted by Jeremy Peterson <ptl99 at hotmail.com> Dec 06, 2005
- 462 views
- Last edited Dec 07, 2005
Here's an example: x.ex
atom x x = 1 if x then include x1.e end if puts(1, x) while get_key() = -1 do end while
x1.e
global atom x x = 50
It will crash with an error because you cannot include files in an if block. With Lua, replace the "include x.e" with "lua_dofile("x.lua")" and it will run all right. Later, Jeremy Peterson.