Re: defining swap
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: defining swap
- From: David Jones <drj@...>
- Date: 2004年10月28日 15:31:34 +0100
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