lua-users home
lua-l archive

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


On Mon, 2005-11-21 at 15:50 -0800, Erik Cassel wrote:
> Now here's a problem: Coroutines are a subset of the base library, which
> means you can't use coroutines without exposing "dofile", "loadfile" and
> "require".

So, once you've opened the base library, run some initialisation code.

In that code you can do:

dofile = nil
loadfile = nil
require = nil

Problem thusly solved :-)

D.

-- 
Daniel Silverstone                         http://www.digital-scurf.org/
PGP mail accepted and encouraged.            Key Id: 2BC8 4016 2068 7895