Re: Boost process and C
- From: websnarf@xxxxxxxxx
- Date: 1 May 2006 12:22:35 -0700
Herbert Rosenau wrote:
On Sat, 29 Apr 2006 12:18:12 UTC, jacob navia <jacob@xxxxxxxxxxxxxxxx>
wrote:
The problem is that instead of getting away from strings as zero
terminated array of characters they STILL hang to it. THEN all functions
must be explicitely be given the length of the strings/buffers/etc even
if it is immediately obvious that the programmer can't know in all cases
what that dammed length is nor should he care!
typedef struct _string {
size_t length;
char *Stringdata
} String;
When you needs a string that knows its length you should use pascal.
It does this by design.
You are saying you should throw out an entire language because you
don't like the way it handles strings? Are you aware that many Pascal
implementations have strings limited to a length of 255 characters?
There are somewhat easier, and less retarded solutions to this problem:
http://bstring.sf.net/
--
Paul Hsieh
http://www.pobox.com/~qed/
http://bstring.sf.net/
.
- Follow-Ups:
- Re: Boost process and C
- From: Herbert Rosenau
- Re: Boost process and C
- From: Ben Pfaff
- Re: Boost process and C
- Prev by Date: Re: Token pasting and what does the result need to be?
- Next by Date: Re: Token pasting and what does the result need to be?
- Previous by thread: Re: Boost process and C
- Next by thread: Re: Boost process and C
- Index(es):
Relevant Pages
|