lua-users home
lua-l archive

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


On Sat, Aug 23, 2014 at 9:58 AM, Tim Hill <drtimhill@gmail.com> wrote:

> One of the basic goals of userdata is that it NOT be mutable (or even
> viewable) from Lua. The contract is that C code can let Lua act as custodian
> for some state which it knows Lua *cannot* access; it is opaque to Lua by
> design. Of course, C code can expose the data indirectly, but that is the
> business of the C code.

I would just like to [politely] point out that I stated earlier in
this chain (or the other thread?) that I realize userdata is used for
encapsulation in many ways.  I recognize that it would be an
insecurity to expose the contents of every userdata, so I wish for a
way to control this through the debug interface -- I don't know what
that would look like.