lua-users home
lua-l archive

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


Luiz Henrique de Figueiredo wrote:
> What I'm saying is that in principle we could store locals in a table, but 
> that would require changing the virtual machine (yet again!) and would 
> probably cost performance, but this would have to be measured. 
> It all boils down to whether we want to have this complication for perhaps 
> a slight increase of expressive power. I don't know the answer. 

Yeah. I think I'd take the speed over the syntax convenience in this case too. Python, JavaScript, Perl, etc have gotten programmers used to using "self" a lot anyways. It's actually nice to know whether you're looking at a local or a instance variable if it's an ugly method.

Steve