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

Phoenix phoenix at secondlife.com
Fri Jan 25 09:11:25 PST 2008


On 2008-01-24, at 20:31, alissa_sabre at yahoo.co.jp wrote:
> In short, the recommended uses of std::string and LLString *now* are,
> in my understanding:
>
> - New codes should use std::string and avoid LLSting as much as
>   possible.  Use ll_safe_string() if you are converting from char *
>   that can be a NULL.
>
> - Replace LLString objects with std::string if you are modifying
>   existing codes and the changes are straightforward, also using
>   ll_safe_string().
>
> - Code updates only to replace LLString is not desired for the moment,
>   however.
>
> - We can keep using static member functions of LLString.

<snip>

> - Explicitly test NULL pointer return from a function that indicates
>   an error.  Don't use ll_safe_string() for the purpose.
>
> How about this?


I too endorse this product and or service.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20080125/ac708bc1/PGP.pgp


More information about the SLDev mailing list