lua-users home
lua-l archive

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


> > Quite the opposite of Lua, I guess. :)
> How do you write a recursive call ?  Hope you don't have to
> define f as global!

Nope. You can access variables in outer scopes (including functions,
classes etc.) that aren't shadowed (dynamic namespaces). You just
can't assign to them without declaring them with the global keyword.

I find these semantics to be very useful and intuitive.

> 
> Tomas


--

  Magnus Lie Hetland      (magnus at hetland dot org)

 "Reality is what refuses to disappear when you stop
  believing in it"                 -- Philip K. Dick