lua-users home
lua-l archive

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


So much for alt+tab when space key is pressed instead of the alt key
-> googlemail sends the mail -.-

anyway, what I intended to write was this example:
> t = {{}}
> in t[1] do x,y,z = 1,2,3 end
> print(t[1].x,t[1].y,t[1].z)
1       2       3
>

formerly, this was much more complicated (assigning to a (short) local
variable and then writing something like v.x,v.y,v.z = 1,2,3 - I find
this new in syntax much more convenient. I hardly used multiple
assignments for class initializers for example, just because it was
too ugly.



2010/1/16 Eike Decker <zet23t@googlemail.com>:
> What I like is also that it now makes more sense to assign multiple
> values such as
>
> 2010/1/15 Mark Hamburg <mark@grubmah.com>:
>> Not to be read as "the only positive point".
>>
>> Mark
>>
>> On Jan 15, 2010, at 1:37 PM, Mark Hamburg wrote:
>>
>>> One positive point about this:
>>>
>>> If you are doing something like class construction in a custom environment -- or even module construction -- it avoids linter complaints about global accesses within the scope. Of course, it also suppresses such linter warnings, so it depends on what you want.
>>>
>>> Mark
>>>
>>>
>>
>>
>