lua-users home
lua-l archive

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


First off, I'll say that I'm glad to see 3.1 finally available. Much of what it
provides will make my code much cleaner, and thus my life much easier. Particularly
anonymous functions.

On Wed, Jan 14, 1998 at 07:39:00PM -0200, Luiz Henrique de Figueiredo wrote:
> Lua 3.1 is now available for *alpha* testing at
>   + support for multiple contexts.

However, I'm curious to know why the multiple contexts are switched by switching a
global variable. This single piece of global state makes it impossible to run two
lua environments simultaneously in separate OS threads. I would much prefer (and
will spend my time converting 3.1 to do this) if the environment was explicitly
passed around as the first parameter of lua functions. In the interest of backward
compatibility for C code I can see how having the public lua functions use a global
state variable is convinent, however, I really want to have new versions of these
functions where I explicitly pass in the environment pointer also.

-- 
David Jeske (N9LCA) + http://www.chat.net/~jeske/ + jeske@chat.net