>-----Original Message----- >From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] >On Behalf Of Neil Baylis >Sent: 29 June 2007 05:14 >To: Microcontroller discussion list - Public. >Subject: [PIC] Receiving Infrared and common problems with engineers. > > >On 6/28/07, John Temples wrote: >> >> There is nothing you could put between the square braces that would >> make that code correct or meaningful. >> > >hehe, that's true, and pretty funny. The problem I'm referring >to won't be noticed by a compiler, or even at runtime. The >problem will manifest sometime in the future, when somebody >needs to change the size of the array, and there's all this >code that has '9' hard coded into it. What are you going to >do.. global search and replace on the digit '9' ? But it's syntacticly correct, even if it's poor style. I don't know of a compiler that will complain because a magic number was used instead of a defined symbol. Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist