[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: global keyword instead of local
- From: Reuben Thomas <Reuben.Thomas@...>
- Date: Wed, 13 Sep 2000 18:05:29 +0100 (BST)
> 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).
--
http://sc3d.org/rrt/ | Maximiste, n. pessimiste