lua-users home
lua-l archive

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


2011/9/26 Artur Galyamov <artur-pub@yandex.ru>:
> 26.09.11, 14:43, "Egil Hjelmeland" <privat@egil-hjelmeland.no>:
>>  Even more generic:
>>
>>     local a,b,c from t
>>
>>  being equivalent to
>>
>>     local a,b,c = t.a, t.b, t.c
>
> If I remember correctly, it was suggested several months ago, but using "in" keyword:
>
>     local min, max, floor in math
>
> No new keywords there. I think it would be nice way to easily localize globals.
>
>

Yes, I like this way, too :)