lua-users home
lua-l archive

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


Matthew Wilson wrote:
> I think I understand how the object system in lua works.  Are there
> any classic examples that show how a prototype-based system surpasses
> the model used by C++ and Java?  
> 
> I'm trying to win over some skeptics to Lua, and the object system
> gets a lot of discussion. 

Lua itself does not have an object system. You can do both
prototype-based or class-based OOP in Lua, it's up to you. You can even
mix both if it suits your needs.