[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is there an #include equivalent in Lua (I do not mean require)
- From: <tonyp@...>
- Date: Thu, 18 Sep 2014 20:47:26 +0300
Maybe I wasn't clear enough.
What I meant by executable was a Lua executable (which maintains the
advantage of portability to any system Lua can run), not something like an
EXE file.
I need to give someone a compiled Lua program that s/he can run using just
the Lua interpreter but
a. without being able to look at the source, and
b. given as a single file which contains the complete application, rather
than a tree structure of library files.
Thank you all for your suggestions, I will try them ASAP.
-----Original Message-----
From: Steven Degutis
Sent: Thursday, September 18, 2014 7:20 PM
To: Lua mailing list
Subject: Re: Is there an #include equivalent in Lua (I do not mean require)
Quoth Tony Papadimitriou:
How can one #include a bunch of files so that when compiled, a single
self-contained executable is produced.
Lua files are not self-contained executables. And there is no way to
produce one without great hackery (that I know of). So, even if you do
concatenate all Lua files into a single source file, if must still be
executed by a Lua interpreter on the target user's machine.
-Steven