[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Try lua in your browser
- From: Peter Cawley <lua@...>
- Date: Wed, 24 Nov 2010 11:22:03 +0000
On Wed, Nov 24, 2010 at 5:22 AM, James Turner <email@example.com> wrote:
> I no I'm late to the game, but I've just discovered Lua and have fallen
> in love. As an exercise to get familiar with the language, I have
> created an interactive lua console that runs in your browser at
In my opinion, the standard library has been overly restricted, and I
would expect more of the following to be available: _G, pcall, load,
loadstring, getmetatable, setmetatable, string.dump, getfenv, setfenv.
On a related note, the fact that pcall is not available, but xpcall
is, looks like an oversight. Finally, behaviour on infinite loops
(e.g. enter "while true do end" or "x = [[x]]; while true do x = x ..
x end") seems to be to run forever.