I used it constantly back in the old days setting bit flags in registers.

You can use it for setting parity bit for checksums.
You can use it to swap the values of two variables without the need
for a third temp variable.


On 11/3/05, Justin D. Scott <[EMAIL PROTECTED]> wrote:
> > clause1 XOR clause2
>
> I suppose in dating there could only be so much tolerance.  I could tolerate
> a smoker, or blue hair, but not both because that would be too much.
>
> <cfif isSmoker XOR isBlueHair>
>         Winner!
> </cfif>
>
> Not practical really.  I don't think I've ever actually seen anyone use XOR
> in my 6+ years of CF coding.  I'm sure someone has, but nobody I've worked
> with.
>
>
> -Justin Scott
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223119
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to