lua-users home
lua-l archive

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


> Here's another possibility:  if you created a getglobal and setglobal
> tag that worked on everything, you could implement something yourself.
> (Personally, I would just disable global assignment once all the functions
> are defined.)  
> 
> I'm not sure what the speed penalty would be for that.  Obviously, since I
> don't assign to globals very often, a setglobal tag wouldn't slow things
> down much.  getglobal might be too slow, though, since it would be used on
> all function calls.  I could live with just a setglobal tag, though. 

I could live with just the setallglobal tag too.  It would be a great 
addition to lua.  getallglobal would be good if it didn't slow things 
down.

Russ