lua-users home
lua-l archive

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


Benoit Germain wrote:
> 
> It is not a problem for me, end users will be told not to use "__" to prefix
> their own variables. I have a hammer and baseball bat on my desk to enforce
> this :-)
> 

Even more efficient is to have your __index and __newindex explicitly 
check their arguments and refuse to set any key that begins with "__".
Twenty minutes of programming is much faster than twenty years in jail. 
^_~

-- 
"No one knows true heroes, for they speak not of their greatness." -- 
Daniel Remar.
Björn De Meyer 
bjorn.demeyer@pandora.be