lua-users home
lua-l archive

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


Most of the time you can just go:

a,b = b,a


On Oct 28, 2004, at 15:12, Jonas Meyer wrote:

Hi.

I'm having trouble defining a method similar to std::swap from c++, as
it seems all parameters are passed by-value.
I need to swap two userdata objects, defined via luabind. Each of the
objects contain one pointer.. so I really just want to swap the
pointers contained inside the objects