[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Some ways to get encapsulation in Lua
- From: PA <petite.abeille@...>
- Date: Wed, 26 Jan 2005 12:12:22 +0100
On Jan 26, 2005, at 03:16, Mark Hamburg wrote:
Would the above scheme provide both inheritance and encapsulation
without too much fuss?
Yes, but at a fairly high cost per object since every method has to be
instantiated and stored into the public table.
Hmmm... I thought that "instantiation" was one of the tenet of OOP?
But as long as the price is right...