Re: Metatables, C and Script...
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Metatables, C and Script...
- From: Jerome Vuarand <jerome.vuarand@...>
- Date: 2009年10月26日 01:45:53 +0100
2009年10月25日 David Given <dg@cowlark.com>:
> If you want to deal with object-oriented data structures in Lua, your
> best bet is to build your own rather than trying to extend tables like
> this --- less problematic. (This is one of the places where Lua's
> non-object-oriented philosophy really shows through.)
I think the good advice is to use something more complex than simply
setting a metatable to a table and consider it an object. However you
don't have to do it yourself. The LOOP library [1] provides several
very complete object models to create table-based objects. And even if
you don't find the model matching your dreams, one of these is
probably a good starting point.
[1] http://loop.luaforge.net/
- References:
- comment error about OP_VARARG in lopcodes.h, VirusCamp
- Re: Metatables, C and Script..., Kenk
- Re: Metatables, C and Script..., Kenk
- Re: Metatables, C and Script..., GrayFace
- Re: Metatables, C and Script..., Kenk
- Re: Metatables, C and Script..., GrayFace
- Re: Metatables, C and Script..., Fernando P. García
- Re: Metatables, C and Script..., GrayFace
- Re: Metatables, C and Script..., Fernando P. García
- Re: Metatables, C and Script..., David Given