lua-users home
lua-l archive

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


On 2012-11-13 9:48 PM, "Coda Highland" <chighland@gmail.com> wrote:
>
> On Tue, Nov 13, 2012 at 4:57 PM, Rena <hyperhacker@gmail.com> wrote:
> > Another advantage would be for
> > multiple libraries to use separate userdata types, each with their own
> > metatables.
>
> That's not needed for userdata, and lightuserdata can't have
> metatables in the first place.
>

Sure they can. They just all share one metatable, which is a bit unwieldy.

You might call Lua itself a solution without a problem; there were already plenty of languages out there. Sometimes it's not until you find a solution that you realize you had a problem at all.