lua-users home
lua-l archive

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



Hi everyone,

Can I extend an object defined in C with a metatable, with more methods in script?

--in Script
myObject = FuncDefinedInC.CreateObjWithMetaInC()

function ExtendMetaForMyObject : SomeScriptFunction()
--    other stuff defined in script.
end


Or once you define a metatable for an object, you can't extend it at all? Either it's defined in C or it's defined in script, you can't do both?

Thanks for any help!

Ken