lua-users home
lua-l archive

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


Hello David,

On Thu, Jan 12, 2012 at 7:07 PM, David Given <dg@cowlark.com> 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"):

http://www.markhneedham.com/blog/2010/03/10/javascript-function-scoping/

-- 
- Patrick Donnelly