lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>does Lua support includefiles for often used parts of a programm, but in
>different programms, like a header file in C?

Simply add dofile"myfuncs.lua" at the beginning of your file.

Lua 4.1 will have a function "require" that will avoid loading the same file
twice.
--lhf