[sldev] Uses of LLString and std::string ?

Argent Stonecutter secret.argent at gmail.com
Wed Jan 23 11:39:31 PST 2008


On 2008-01-23, at 12:08, Richard Nelson wrote:
> Before any C++ purists complain, let me note that std::string does  
> not have a virtual destructor and hence we can never add any member  
> variables or implement a non-trivial destructor in LLString.  It  
> serves merely as a convenient wrapper for std::string that tests  
> for the null char* case, as Steve mentioned, and provides some  
> handy functions (e.g. case-insensitive string comparison) that  
> would otherwise require boilerplate code.

[speechless]

What kind of object oriented language doesn't make this kind of thing  
virtually transparent?



More information about the SLDev mailing list