lua-users home
lua-l archive

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


On Feb 11, 2006, at 12:00 PM, PA wrote:
	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

I'm confused what you mean by this. Could you elaborate?