lua-users home
lua-l archive

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


George wrote:
Btw, I'd like to ask if there's a compelling reason why these posix
functions have their own namespace, why not simply extend the existing
"os" table?

The "extension" API is available too.

http://lua-users.org/wiki/ExtensionProposal

It is not meant to provide access to POSIX, but instead to provide a layer of functionality beyond what standard C provides, but which modern desktop (and other) operating systems provide anyway. This includes hierarchical filesystem support, modifying the environment, file locking, pipes, and process control.

If you are specifically aiming only at POSIX, then this probably isn't the library for you. If instead you are aiming to write Lua programs which are portable to POSIX and Window systems, then you may find this library quite useful.

					-Mark