Re: New draft version of o65 file format

From: Gabor Lenart (lgb_at_lgb.hu)
Date: 2005-04-01 13:47:57

On Fri, Apr 01, 2005 at 12:45:53PM +0200, Ullrich von Bassewitz wrote:
> > ? Really? I've never seen this rule! In fact when I was learnt to code C it
> > was told that uninitialized variables has TOTALLY UNDEFINED value, you can't
> > assume anything.
> [...]
> > But as I've written: I was told that it's COMPLETLY illegal to use a variable which
> > was not initalized before ... So in thoery you should not do this however. Or at least
> > you can, but it is NOT PORTABLE code in C, if you try to compile it on other platform
> > and/or compiler.
> 
> I can usually be trusted when it comes to portable C code:-) A lot of C
> "programmers" have never read the standard, use try and error to find
> something out and then believe it's the truth. 

The problem is that I have bad experiences when using different compilers
... While I admit you're right about this topic, I would never use a
variable which is not initalized before. Just because it's more readable and
portable. Portable in that way that 'real compilers' don't always follow
standard unfortunately, and it's worth to be extra careful when using
different - even exotic - compilers ...

- Gábor


       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail pre-2.1.8.