lua-users home
lua-l archive

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


On Jul 8, 2010, at 10:54 PM, Everett L Williams II <rett@classicnet.net> wrote:

The solution to name spaces in general is to get rid of the concept of globals entirely, and make it possible to pass a pointer to the namespace of a chunk or module, 

Then all you have done is created a pointer to a globals object and passed it around on the stack rather than leaving it on the heap. 

The problem isn't globals, the problem is that coordinating usage of shared resources is hard.

But this isn't a technical or linguistic problem. This is a social/political problem, pretty much THE problem. 

My personal opinion is that "globals are bad" is an opinion born out of technical people looking for a technical solution to a non-technical problem. 

Dave