[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Redefining locals
- From: "Bilyk, Alex" <ABilyk@...>
- Date: Thu, 11 Nov 2004 19:01:31 -0800
At least this would have made it consistent with using globals when 'local' is dropped from the example below.
From: Matt Hellige [mailto:firstname.lastname@example.org]
Sent: Thursday, November 11, 2004 6:33 PM
To: Lua list
Subject: Re: Redefining locals
["Bilyk, Alex" <ABilyk@maxis.com>]
> Some people (not me) now say
> local _,_,x = <whatever>
> all over their scripts and this relies on
> local a, a
> being valid in Lua... as odd as it is.
I thinks that 'local a, a' should remain valid, but I think the
meaning should change... Instead of defining two separate slots, I
think it should define one slot and then assign to it... I guess
that's a silly distinction in this case, but it's important in other
Does that make sense? Maybe I'm misunderstanding something... That's
pretty likely, actually...
Matt Hellige email@example.com