lua-users home
lua-l archive

Re: creating a new module as an extention of another module

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


On Mar 31, 2006, at 17:27, david herviou wrote:
Someone as an idea? or is it to basic to ask the question (I'm a newbie concerning the packaging system)?
I guess we all are, as it's brand new :)
Tomas posted some code recently showing how it could be done:
I would like to add that if you want some inheritance, you could
use the second argument of `module()' to achieve an elegant solution.
local obj = require"obj"
module ("myobj", obj:inherit())
http://lua-users.org/lists/lua-l/2006-03/msg00336.html
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/

AltStyle によって変換されたページ (->オリジナル) /