lua-users home
lua-l archive

strict.lua... more information

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


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

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