Add a + operator to LSLString, otherwise you will end up with CIL strings if
you have expressions with strings.0.6.0-stable
parent
abc6424c51
commit
6452c6c20b
|
@ -1346,6 +1346,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||||
return s1.m_string != s2;
|
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)
|
public static explicit operator double(LSLString s)
|
||||||
{
|
{
|
||||||
return Convert.ToDouble(s.m_string);
|
return Convert.ToDouble(s.m_string);
|
||||||
|
|
Loading…
Reference in New Issue