lua-users home
lua-l archive

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


Marc,

I always put the _VERSION and _COPYRIGHT in, mostly also the _DESCRIPTION at my work. _VERSION is important as some add-on script require a minimum version to work correctly.
_COPYRIGHT is relevant for legal reasons.
_DESCRIPTION is nice for documentation.

--
Oliver

Am 11.02.2016 um 11:08 schrieb Marc Balmer:
We usually put some information strings into our modules, e.g.

	lua_pushliteral(L, "_COPYRIGHT");
	lua_pushliteral(L, "Copyright (C) 2014 micro systems marc balmer");
	lua_settable(L, -3);
	lua_pushliteral(L, "_DESCRIPTION");
	lua_pushliteral(L, "EAN support functions");
	lua_settable(L, -3);
	lua_pushliteral(L, "_VERSION");
	lua_pushliteral(L, "ean 1.0.1");
	lua_settable(L, -3);

How do other module-writer handle such?  Do you put such information into modules?  Do you think it makes sense?  Is it of any use at all?  Is it common practice? (yes, I am considering removing it...)