[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: what core things might be in Lua 5.2
- From: "steve donovan" <steve.j.donovan@...>
- Date: Wed, 14 Nov 2007 08:38:20 +0200
Hi guys,
This may be a little OT, but this is relevant to a discussion of
features & policies in the next release.
Consider the common operation of making a processor/thread sleep. We
do not have os.sleep() because it isn't ANSI C, but everything that
runs, can sleep. They just give it different names.
So the proposal is: as a special exception to the rule "don't mess
with the basic library namespaces', allow universally-implementatable
things like sleeping to be put into the os namespace by extension
libraries. Like, os.sleep(). This set should be kept as limited as
possible, but it's definitely non-empty.
lpack already does this by defining string.pack...
steve d.