On Fri, 8 Apr 2005 20:08:40 +0000 (UTC), Marco van de Voort
<marcov@[EMAIL PROTECTED]
> wrote:
> On 2005-04-08, Scott Moore <scott.moore6@[EMAIL PROTECTED]
> wrote:
<snip>
> > The language C/C++ does not have string functions either, to this day.
>
C has (since well before C89) and C++ inherits, functions for
null-terminated strings. Technically these are in the standard library
and not the core language syntax, except for literals, if that's the
distinction you're making, but as they are standard they are
officially part of the language(s). Null-terminated has its
limitations and problems as already discussed elsethread, but they are
strings and are usable for most purposes.
> C++ STL has a string base class.
>
C++ has standard library cl***** for regular and wide-character
strings, both specialized from a standard template basic_string. These
have no virtual methods and so are not generally useful as base
cl*****, although that is not actually prevented; you can share
implementation but not do any OO stuff. Mostly they are just used
as-is (as the types they are, not inherited).
- David.Thompson1 at worldnet.att.net


|