[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: metamethods for assignment and type conversion
- From: Adrien de Croy <adrien@...>
- Date: Fri, 10 Aug 2007 10:14:18 +1200
so all assignments are done by incrementing a reference count and
referring to the rvalue instead of copying it?
If that's done in one place, it could be an opportunity for a metamethod
Jerome Vuarand wrote:
Adrien de Croy wrote:
but it doesn't really make that much sense that lua exposes all the
other operators except assignment.
It does make sense if you consider the fact that assignment in Lua are
not expressions (contrary to C and many languages using C syntax). *All*
operators used in expressions are exposed.
Adrien de Croy - WinGate Proxy Server - http://www.wingate.com