[Gllug] XOR

Ashley Evans ashley at seamlessrecruitment.com
Thu Apr 15 16:09:53 UTC 2004


Afternoon,

Having spent the day working on various bits and bobs I came across some 
info on wikipedia about XOR.

The two notable things I've discovered today are:

One can swap the contents two vars without using a tmp var.
One can implement a doubely linked-list using .

Then we have the good old xor "encryption". Which is fun to play with.

As a newbie programmer I think xor is about a great as functions come.

So, what else can this bit of binary operator magic be used for?

Ashley

http://en.wikipedia.org/wiki/Xor_linked_list
http://en.wikipedia.org/wiki/Xor_swap_algorithm
http://www.groovyweb.uklinux.net/index.php?page_name=How%20xor%20encryption%20works
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list