[chbot] !!!!!!!! Choc fish challenge 2 !!!!!!!!!

Volker Kuhlmann list0570 at paradise.net.nz
Wed Aug 3 11:13:27 BST 2011


On Wed 03 Aug 2011 11:40:03 NZST +1200, Charles Manning wrote:

> In my books there is also a very hot place reserved for those who write things 
> like 
> while((*x++ = *y++)){}

You can't really compare this with previous examples. This one is much
different because it is undefined, unpredictable and therefore useless
and much worse. Your choc fish challenge was defined in its behaviour
and predictable, although extremely bad programming and a convoluted way
to say while(1); .

I didn't realise one can index an integer constant with a pointer. Don't
give me any more ideas... ;-))

But I'm afraid this whole thread has gone a bit OT.

Volker

-- 
Volker Kuhlmann
http://volker.dnsalias.net/	Please do not CC list postings to me.



More information about the Chchrobotics mailing list