I was reading on some documentation for D, when I stumbled upon these line:
1. "Do not xor pointers with other values, like the xor pointer linked list trick used in C."
2. "Do not use the xor trick to swap two pointer values."
I had never heard of these tricks before so I looked into them. When I was first introduced to linked lists I got the traditional approach (which makes sense for a novice). But wow the XOR linked list is a really neat trick. Check out the links below to find out more:
http://stackoverflow.com/questions/1...nked-list-work
http://www.geeksforgeeks.org/xor-lin...ed-list-set-1/