Why I (Still) Won't Use D

Don Clugston dac at nospam.com.au
Tue Apr 1 00:24:23 PDT 2008


Michiel Helvensteijn wrote:
> Walter Bright wrote:
> 
>>>> making for 18 character types! Next, we have char[], vector<char>, and
>>>> string<char>, making for 54 string types, more than half of which are
>>>> implementation defined.
>>> vector<char> is a silly example and you know it. You could have made your
>>> point just fine with only 36 string types. :-)
>> No, I don't agree that it is a silly example.
> 
> No one ever used vector<char> as a string and no one ever will.

"If you are running in a multithreaded environment where you've determined that 
string's reference counting support is a performance problem... consider using 
vector<char> instead of string." -- Scott Meyers, "Effective STL", p 65.



More information about the Digitalmars-d mailing list