[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Making lua case insensitive
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 8 Dec 2000 22:27:00 -0200 (EDT)
>It really would be nice to be able change how Lua looks up local variables from within Lua.
I think that having tag methods for locals would kill the performance edge
of local variables.
> return self.title.." "..self.firstName.." "..self.lastName
> return title.." "..firstName.." "..lastName
I don't see how ag methods for locals would help here: title, firstName,
lastName would be parsed as *global* variables.
You'd have to declare them as local, but in this case, why not write
local title, firstName, lastName = self.title, self.firstName, self.lastName