Hi, On Mon, 16 Jan 2006, Tilghman Lesher wrote: > On Monday 16 January 2006 04:59, Luigi Rizzo wrote: > > i notice some inconsistency in the return values for > > functions that have a boolean result - some pieces of code > > use -1, others use 1.
> Perhaps the real question is: why are we returning 1 or -1? Surely, these are magic numbers, a coding style that is (generally) not approved. A quick web search shows many many coding guidelines that say, "never use magic numbers" perhaps someone can provide some information that explains why these magic numbers are acceptable. Derek. -- Derek Smithies Ph.D. Any fool can write code that IndraNet Technologies Ltd. a computer can understand. Email: [EMAIL PROTECTED] Good programmers write code ph +64 3 365 6485 that humans can understand. Web: http://www.indranet-technologies.com/ Martin Fowler _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
