lua-users home
lua-l archive

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

["Bilyk, Alex" <>]
> Yeah, I see what you mean. Guess I would agree with
>     local f,g
>     function g() f() end
>     function f() g() end
> being a good compromise. It does seem odd to me that 'local' would create a slot in the same scope when one just like it has already been defined. I wonder if this has been done intentionally or is it really unintended result of keeping things simple. I think the latter is the case and now a bunch ot people got dependent on it.

But who's really dependent on it? You can always achieve the same
result with extra scopes, can't you? It seems like a really strange
feature to me...


Matt Hellige