lua-users home
lua-l archive

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


John Belmonte wrote:
> 1) make a wrapper for your classes methods that would back up the current 
> global table and replace it with your class object.  That is, when the user 
> calls obj:fullName() it's really first handled by a wrapper that switches 
> the global table and then calls the actual fullName(). 

It seems that the cost of this step would exceed the benefit of the simpler syntax.
Is there some way to avoid this problem?

Steve