lua-users home
lua-l archive

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

On 2012-01-13 01:48, Patrick Donnelly wrote:
Hello David,

On Thu, Jan 12, 2012 at 7:07 PM, David Given <> wrote:
So, firstly: does this difference in behaviour have an actual name, so I can refer to it and hope that people understand what I'm talking about,

It's called function level scoping versus block level scoping. See for
example this page (first result in google for "function scoping"):

Note that something similar exists in JavaScript with let:

Pierre Chapuis