Add a + operator to LSLString, otherwise you will end up with CIL strings if

you have expressions with strings.
0.6.0-stable
Homer Horwitz 2008-10-11 15:17:49 +00:00
parent abc6424c51
commit 6452c6c20b
1 changed files with 5 additions and 0 deletions

View File

@ -1346,6 +1346,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
return s1.m_string != s2;
}
public static LSLString operator +(LSLString s1, LSLString s2)
{
return new LSLString(s1.m_string + s2.m_string);
}
public static explicit operator double(LSLString s)
{
return Convert.ToDouble(s.m_string);