lua-users home
lua-l archive

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

On 10 June 2017 at 03:02, Sean Conner <> wrote:
> It was thus said that the Great Dirk Laurie once stated:
> > 4. Do we make big do ... end blocks in our code in order to
> > restrict the scope of locals?
>   I do that quite often.  In fact, I'll do things like:
>         local somevar do
>           -- code to do a bunch of stuff
>           somevar = ...
>         end
> to make it clear that there is some non-trivial initialization of a local
> variable.

Dirk talked about using do-end blocks to restrict the scope of locals,
but the above example with odd indentation does not do that.

-- Hisham