lua-users home
lua-l archive

Re: Modules with standalone main program

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


> if ... then
> print("I was included as a module")
> return {}
> end
> print("I was executed as a program")
Try lua mod.lua 1 2 3 .

AltStyle によって変換されたページ (->オリジナル) /