[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: AKClassHierarchy
- From: PA <petite.abeille@...>
- Date: Sat, 11 Feb 2006 20:00:46 +0100
On Feb 11, 2006, at 19:52, Gavin Kistner wrote:
That's what I have now, but you have to explicitly specify the parent
class:
Yes, you need to be explicit. One way or another.
UnitSquare = AKClass:new( Square )
function UnitSquare:initialize( )
Square.initialize( self, 1 )
end
You could make the above look more like this:
local super = Square
local self = AKClass:new( super )
function self:initialize( )
super.initialize( self, 1 )
end
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/