[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Modules with standalone main program
- From: "Tony Papadimitriou" <tonyp@...>
- Date: Sat, 24 Feb 2018 21:36:15 +0200
This method will fail if there are command line parameters.
Unfortunately, the conclusion was that there seems to be no fail-proof
This is a very important feature but there is zero interest from the Lua
team to provide a reliable method.
You mean like this?
Here's my "module":
if ... then
print("I was included as a module")
print("I was executed as a program")