ke swap(a, b) to swap them. Just use a
temp
> var.
>
> - Gordon
>
>
>
> From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> Behalf Of Reid Priedhorsky
> Sent: Thursday, August 30, 2007 9:41 AM
> To: flexcoders@yahoogroup
: Thursday, August 30, 2007 9:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: swap two variables without temporary variable
carlos m wrote:
> Hey Reid,
>
> Don't think there is a built-in function that will do that for
> you--not that I am aware of anyway--but there is de
carlos m wrote:
> Hey Reid,
>
> Don't think there is a built-in function that will do that for
> you--not that I am aware of anyway--but there is definitely a way of
> implementing it! Check out this blog post by the awesome guys at
> polygonal:
> http://lab.polygonal.de/2007/05/10/bitwise-gems-fa
3 matches
Mail list logo