Re: Internal Representation of Strings

"Tony" <tony@my.net>
Tue, 3 Mar 2009 15:23:41 -0600

          From comp.compilers

Related articles
[31 earlier articles]
Re: Internal Representation of Strings tony@my.net (Tony) (2009-02-25)
Re: Internal Representation of Strings armelasselin@hotmail.com (Armel) (2009-02-26)
Re: Internal Representation of Strings marcov@stack.nl (Marco van de Voort) (2009-02-27)
Re: Internal Representation of Strings tony@my.net (Tony) (2009-02-28)
Re: Internal Representation of Strings cr88192@hotmail.com (cr88192) (2009-03-03)
Re: Internal Representation of Strings armelasselin@hotmail.com (Armel) (2009-03-02)
Re: Internal Representation of Strings tony@my.net (Tony) (2009-03-03)
Re: Internal Representation of Strings hebisch@math.uni.wroc.pl (Waldek Hebisch) (2009-03-05)
Re: Internal Representation of Strings cr88192@hotmail.com (cr88192) (2009-03-06)
| List of all articles for this month |

From: "Tony" <tony@my.net>
Newsgroups: comp.compilers
Date: Tue, 3 Mar 2009 15:23:41 -0600
Organization: at&t http://my.att.net/
References: 09-02-051 09-02-068 09-02-078 09-02-120 09-02-125 09-02-134 09-03-001 09-03-009
Keywords: storage, design
Posted-Date: 05 Mar 2009 05:59:02 EST

"cr88192" <cr88192@hotmail.com> wrote in message
> "Tony" <tony@my.net> wrote in message news:09-03-001@comp.compilers...
>> "Armel" <armelasselin@hotmail.com> wrote in message
>
> <snip>
>>
>> My goal is to get away from all the APIs that use null-terminated
>> strings,
>> so I will be replacing all of that. Not needing that null terminator
>> would
>> be an indication of success of a string implementation that wished to
>> depart from that paradigm.
>
> what is the problem with NULL-terminated strings anyways?
> my code uses them all the time with no real ill-effect...


But if you were doing it from scratch, would you implement strings as
null-terminated?


> so, maybe the big question that can be asked is:
> really, why do you so much dislike the NULL-terminated strings?...


Many reasons. Not the least of which are that they are bad and the
implementation is ugly. ;) (Read: I don't feel like retyping
everything already said a thousand times that is is bad about
null-terminated strings).


Tony



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.