From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2005-04-01 14:00:16
On Fri, Apr 01, 2005 at 01:36:01PM +0200, Gabor Lenart wrote: > Hmmm, anyway I would NEVER use an uninitialized variable whatever even > not-exactly-compatible standards say between multiple > architectures/compilers :) Sorry, but you don't seem to understand, what a standard is. Do you also say "never buy A4 paper, because every manufacturer has it's own A4 paper size, so it may not fit in your printer"? Why do you trust the ISO A4 standard but doubt the ISO C standard? And no, there is no C standard other than ISO/IEC 9899:1999 (E), especially not several "not-exactly-compatible". > Also some compilers dump warning message if you > try this. And I bet it's a good advice to avoid this madness also ... I don't know if any compiler that outputs a warning message in this case. And your advice is NOT good. Portable programs are programs that don't make assumptions about anything not defined in the standard. But they MUST trust the standard, because if they don't, all bets are off. If you write your code according to the standard, and it fails, it is because the compiler is broken. If you write your code with just your beliefs, your code may or may not work, but you'll never know for sure. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de Message was sent through the cbm-hackers mailing list
Archive generated by hypermail pre-2.1.8.