lua-users home
lua-l archive

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


At least this would have made it consistent with using globals when 'local' is dropped from the example below.

-----Original Message-----
From: Matt Hellige [mailto:matt@immute.net]
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
cases...

Does that make sense? Maybe I'm misunderstanding something... That's
pretty likely, actually...

Matt


-- 
Matt Hellige                  matt@immute.net