lua-users home
lua-l archive

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

A couple of corrections:

On Fri, Jun 27, 2008 at 9:56 PM, Javier Guerra <> wrote:
> differences:
> - OOP is just a little syntax sugar, there's no predefined inheritance style.

Neither is there in Javascript. They are both prototype-based languages.

On Fri, Jun 27, 2008 at 11:34 PM, Javier Guerra <> wrote:
> JS doens't have lexical scoping, just two-level scopes. may i had the
> terminology wrong and it could be called 2-level lexical scope, while
> Lua is full block based lexical scoping.

Javascript has lexical scope. It doesn't have a package system though.