Re: Where is stringbuilder?
- From: "Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 20 Oct 2006 09:32:49 +0200
"Rob Kennedy" <me3@xxxxxxxxxxx> wrote in message
news:4pr1kqFk8t34U1@xxxxxxxxxxxxxxxxx
J French wrote:
What an odd idea
A string is just a block of memory
In Win32 Delphi, yes. In Java and .Net, no. In those, a string is an
object. If it had methods that could change its contents, then anything
that stored a reference to a string would be in danger of having that
string change later.
There is that. Plus, a string does not contain amorphous bytes but
*characters*. These may be two bytes in length. Or one-or-more bytes.
They may be encoded in US-ASCII, with high bits implicitly cleared
because they're not used anyway. Or in ISO-8859-1. Or ISO-8859-15,
or Windows-1252. Or KOI-8. UTF-8. UTF-7. EBCDIC.
If you want a block of memory, it seems to me that a dynamic array of
byte would be a choice less laden with semantic baggage.
Groetjes,
Maarten Wiltink
.
- Follow-Ups:
- Re: Where is stringbuilder?
- From: J French
- Re: Where is stringbuilder?
- References:
- Where is stringbuilder?
- From: brett
- Re: Where is stringbuilder?
- From: Rob Kennedy
- Re: Where is stringbuilder?
- From: J French
- Re: Where is stringbuilder?
- From: Rob Kennedy
- Re: Where is stringbuilder?
- From: J French
- Re: Where is stringbuilder?
- From: Rob Kennedy
- Where is stringbuilder?
- Prev by Date: Re: Where is stringbuilder?
- Next by Date: Re: Where is stringbuilder?
- Previous by thread: Re: Where is stringbuilder?
- Next by thread: Re: Where is stringbuilder?
- Index(es):
Relevant Pages
|