Fixed nant compile problem

afrisby
Tedd Hansen 2008-01-01 15:28:16 +00:00
parent d484df15c0
commit 4d3a8f4b52
1 changed files with 17 additions and 8 deletions

View File

@ -599,14 +599,23 @@ namespace OpenSim.Region.ScriptEngine.Common
return new LSLString(s);
}
public static bool operator ==(LSLString s1, LSLString s2)
{
return s1.m_string == s2.m_string;
}
public static bool operator !=(LSLString s1, LSLString s2)
{
return s1.m_string != s2.m_string;
}
// Commented out:
/*
[echo] Build Directory is /home/tedd/opensim/trunk/OpenSim/Region/ScriptEngine/Common/bin/Debug
[csc] Compiling 5 files to '/home/tedd/opensim/trunk/OpenSim/Region/ScriptEngine/Common/bin/Debug/OpenSim.Region.ScriptEngine.Common.dll'.
[csc] error CS0121: The call is ambiguous between the following methods or properties: `OpenSim.Region.ScriptEngine.Common.LSL_Types.LSLString.operator /(OpenSim.Region.ScriptEngine.Common.LSL_Types.LSLString, OpenSim.Region.ScriptEngine.Common.LSL_Types.LSLString)' and `string.operator /(string, string)'
[csc] /home/tedd/opensim/trunk/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs(602,32): (Location of the symbol related to previous error)
[csc] /usr/lib/mono/2.0/mscorlib.dll (Location of the symbol related to previous error)
[csc] Compilation failed: 1 error(s), 0 warnings
*/
//public static bool operator ==(LSLString s1, LSLString s2)
//{
// return s1.m_string == s2.m_string;
//}
//public static bool operator !=(LSLString s1, LSLString s2)
//{
// return s1.m_string != s2.m_string;
//}
#endregion
#region Overriders