Content deleted Content added
Line 49:
: I was confused by this too. "String" always refers to a string of characters. Vectors of other things are lists, arrays, vectors, ... I'm curious as to what language it is where the word "string" is used in reference to lists of objects. [[User:Richard W.M. Jones|Richard W.M. Jones]] 09:04, 1 May 2006 (UTC)
:: Yes. And keep in mind that WP article titles generally reflect the most common usage for a given term (unless it needs its own disambiguation page). In computer science, "string" most common refers to a string of characters. Other not-so-common meanings (e.g., ''[[bitstring]]'') can be linked to in the "See also" section. — [[User:Loadmaster|Loadmaster]] 18:35, 1 May 2007 (UTC)
:::My impression is that "string" virtually ''always'' means "string of characters". The only counter-example I know is that C++ [[std::string]] is based on a template and can be made to use any object. However I am almost certain this was done ''only'' to support bytes and "wchar" (16 bits, often mislabled "Unicode"). If it was not for "wchar" then they probably would not have made it a template. Since wchar is intended to store characters (or UTF-16) then the string is still a "string of characters". I would be interested if anybody has any real examples of usage of a std::basic_string template with any object for any purpose other than storing something that would be considered "characters".[[User:Spitzak|Spitzak]] ([[User talk:Spitzak|talk]]) 17:19, 4 March 2011 (UTC)
== Null and NUL ==
|