[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: modules and require all
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 12 Nov 2012 18:10:09 +0200
On Mon, Nov 12, 2012 at 5:55 PM, Egor Skriptunoff
<egor.skriptunoff@gmail.com> wrote:
> BTW, IMHO, "with" statement from Pascal is highly desirable in Lua:
> with <list_of_tables> do <statements> end
I used to do a lot of Pascal, and I was too fond of 'with'. So when I
look at that code today, I struggle to identify the scope of field
references, especially when these 'with' statements are nested.
It was a little better in VB, where the field references always had a
prepended period.
One of the great things about Lua is that symbol lookup rules are very
straightforward....
steve d.