lua-users home
lua-l archive

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


> > I suppose for me the ideal would be an explicit global declaration
> > and local-by-default behaviour.
> This is much like it is done in PHP, and I also would prefer 
> something like this.
	But in PHP you have access to all functions and (I think)
you can't define a function inside another function...

> On top of that, a 'global x' keyword could be allowed as
> syntactical sugar for 'x = globals.x'.
	But then how would you update the value of 'x'?

	Tomas