lua-users home
lua-l archive

Re: protecting a variable

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


> If the variable is global you can use the __index and __newindex
> metamethods, for each global variable belongs to a table (_G in the
> most common case).
See test/trace-globals.lua in the official distribution.
--lhf

AltStyle によって変換されたページ (->オリジナル) /