Mail Archives: djgpp/2000/03/04/22:59:47
On Sun, 5 Mar 2000, Gautier wrote:
> Kalum Somaratna aka Grendel wrote:
>
> > You are correct Damien, but what I really want to comment about was that
> > c++ is used more often to add things like array bounds checking, non zero
> > based arrays, which should have been part of the original language, rather
> > than using c++ to extend and design better programs..
>
> > If you consider null terminated strings for example in C, I bet that this
> > simple "feature" is the root cause for hundreds of errors in existing
> > programs.
>
> Don't dream too loud of these original Ada features! After all the whole time
> spent debugging null-terminated strings is a good thing for employement in CS
> area.
Yeah it sure is good from a programmers perspective (you never will go
hungry as long as C has this feature ;-) ), but it sure as h**l isn't
funny when you are a user and your program GPF's due to some programmer
making a common mistake in not thinking about the null terminated part of
the string.
BTW I find that all programmers no matter whatever there skill level maybe
are prone to this kind of error. I for one have made unwitting mistakes
because of this null termination buisness and I'm sure there are many
others out there whom this has happened to at least once..
Grendel
Hi, I'm a signature virus. plz set me as your signature and help me spread
:)
- Raw text -