[flexcoders] Re: swap two variables without temporary variable

2007-08-30 Thread Doug Lowder
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

RE: [flexcoders] Re: swap two variables without temporary variable

2007-08-30 Thread Gordon Smith
: 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

[flexcoders] Re: swap two variables without temporary variable

2007-08-30 Thread Reid Priedhorsky
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