R
Richard Heathfield
Malcolm said:
Touche'. (Except that C strings are actually null-terminated, not
NUL-terminated.)
The point of the string depends on whether your application needs it or is
required to be able to process it. The point of size_t is to be able to
store information on the size or number of objects, and it can easily do
this without being an arbitrary-precision type.
Go for it. Good luck in committee!
A infinite string isn't a string, because C stirngs are NUL-terminated and
an infinite array has no terminating member.
Touche'. (Except that C strings are actually null-terminated, not
NUL-terminated.)
I do take the point about long strings. If a size_t won't hold the length
of my string (the Encyclopedia Britannica, not a contrived example in any
way) the what is the point of it?
The point of the string depends on whether your application needs it or is
required to be able to process it. The point of size_t is to be able to
store information on the size or number of objects, and it can easily do
this without being an arbitrary-precision type.
I recommend for C2006 a arbitrary-precison representation of size_t.
Go for it. Good luck in committee!