lua-users home
lua-l archive

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

> I have speculated, too, about the reasons why lua does not do it, and
> I suspect that it is a tradeoff for speed. You would need to allocate
> such environments on the heap, and that can be very costly.

What's the difference between doing this in Lua and Pascal? The latter is
supposed to be a fairly lightweight language...anyway, environments are
typically quite small (provided you identify the local variables that a
nested function actually uses).

-- | Maximiste, n.  pessimiste