[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: strict.lua... more information
- From: sur-behoffski <sur_behoffski@...>
- Date: Fri, 5 Jan 2018 21:31:37 +1030
G'day,
[This message is in reply to Dirk's response, but I receive the messages in
digest format, so I apologise that this will be seen as a new thread.]
Dirk Laurie wrote:
> It is not in the typical tarball that you download from lua.org,
> which does not have an /etc subdirectory.
Some digging around show that we're both right... There was an etc
subdirectory from at least 4.0.1 to 5.1.5, but which vanished by the time
5.2.4 was released.
Furthermore, where the etc/ subdirectory is found, strict.lua only appears
in the 5.1.5 release... and a search for "strict" yields nothing with any
other current tarball (or, at least since 4.0.1):
$ tar tzvf lua-4.0.1.tar.gz | grep strict
$ tar tzvf lua-5.0.3.tar.gz | grep strict
$ tar tzvf lua-5.1.5.tar.gz | grep strict
-rw-r--r-- lhf/tecgraf 928 2008-01-19 03:33 lua-5.1.5/etc/strict.lua
$ tar tzvf lua-5.2.4.tar.gz | grep strict
$ tar tzvf lua-5.3.4.tar.gz | grep strict
Just for fun, here's the contents of etc/ in the 5.0.3 tarball:
$ tar tzvf lua-5.0.3.tar.gz | grep -i etc
drwxr-xr-x lhf/tecgraf 0 2003-10-02 10:45 lua-5.0.3/etc/
-rw-r--r-- lhf/tecgraf 1016 2002-12-18 00:49 lua-5.0.3/etc/min.c
-rw-r--r-- lhf/tecgraf 1745 2003-04-08 04:30 lua-5.0.3/etc/README
-rw-r--r-- lhf/tecgraf 1112 2003-03-27 12:00 lua-5.0.3/etc/trace.c
-rw-r--r-- lhf/tecgraf 810 2003-04-03 00:18 lua-5.0.3/etc/Makefile
-rw-r--r-- lhf/tecgraf 4074 2002-09-28 02:13 lua-5.0.3/etc/compat.lua
-rw-r--r-- lhf/tecgraf 1312 2003-04-03 09:14 lua-5.0.3/etc/bin2c.c
-rw-r--r-- lhf/tecgraf 276 2002-06-05 11:20 lua-5.0.3/etc/lua.magic
-rw-r--r-- lhf/tecgraf 146 2003-03-19 12:29 lua-5.0.3/etc/doall.lua
-rw-r--r-- lhf/tecgraf 1078 2000-07-31 21:28 lua-5.0.3/etc/lua.ico
-rw-r--r-- lhf/tecgraf 1361 2000-08-02 04:47 lua-5.0.3/etc/lua.xpm
-rw-r--r-- lhf/tecgraf 1512 2002-12-05 03:59 lua-5.0.3/etc/luser_tests.h
-rw-r--r-- lhf/tecgraf 2421 2003-03-29 07:04 lua-5.0.3/etc/saconfig.c
-rw-r--r-- lhf/tecgraf 790 2003-03-27 12:50 lua-5.0.3/etc/noparser.c
-rw-r--r-- lhf/tecgraf 790 2003-04-02 03:38 lua-5.0.3/etc/luser_number.h
> Why must a 40-line script (7 lines of which is documentation
> and 5 blank that has not needed maintenance changes in
> almost eight years be a loaded module? You can simply include
> it in your code with a comment acknowledging the source.
I suppose it's just my style, to keep things as modular as possible. Another
possible reason is that different people have different coding styles, so a
change within a script could appear jarring. And finally, it's easier to
track bugfixes/revisions when modularity is enforced, such that third-party
sources are clearly delineated.
cheers,
sur-behoffski (Brenton Hoff)
programmer, Grouse Software