lua-users home
lua-l archive

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


Mayber you can check out Programming in Lua
and read the part on object orientation:

http://www.lua.org/pil/16.html



On 5/29/05, Stukov <Stukov@gala.net> wrote:
> Hello all!
> 
> My question is about privacy concepts. In Lua any table and field can
> be enumerated with foreach,foreachi,pairs,ipairs methods, no matter
> where they was declared - in C or in Lua. This is very inconvenience
> feature in Lua. I means that any person having access to script, at
> same time has acces to all declarations ( tables, functions and
> constants declared using only the C api). There is no way to create
> 'public' interface of my module or application. How to solve this
> problem?
> 
> --
> Best regards,
> Stukov
> mailto:Stukov@gala.net
> 
> 


-- 
http://www.eyan.org

do or do not. there is no try.