[sldev] Uses of LLString and std::string ?
Phoenix
phoenix at secondlife.com
Fri Jan 25 09:17:02 PST 2008
On 2008-01-25, at 08:50, Dzonatas wrote:
> Phoenix wrote:
>> /**
>> * @brief Return a string constructed from in without crashing if the
>> * pointer is NULL.
>> */
>> std::string ll_safe_string(const char* in);
>>
>
> I find it odd not to use a namespace with C++. An example with
> namespace is LL::safe_string(), but the function is ll_safe_string
> () without the namespace. If there is inertia to update code, then
> perhaps add in the effect of the namespace to make it easier for
> non LL namespaces to exist in the open source instead of forcing it
> all in one global namespace.
I also find it odd, but we started this whole thing on Visual Studio
6. I'm not a windows guru but I recall it had a bad STL and poor to
non-existent support for namespaces. This of course could be just a
made up memory based on my wary stance towards microsoft products and
the fact that most of the developers working on it at the time were
more comfortable in c than c++.
-------------- 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/4af6e824/PGP.pgp
More information about the SLDev
mailing list