lua-users home
lua-l archive

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

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 call.

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 -