aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/IndexedAnswers.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/IndexedAnswers.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/IndexedAnswers.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/IndexedAnswers.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/IndexedAnswers.cs
index bba7d03..5810c0b 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/IndexedAnswers.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/YieldProlog/IndexedAnswers.cs
@@ -249,6 +249,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog
249 object[] arguments = YP.getFunctorArgs(Head); 249 object[] arguments = YP.getFunctorArgs(Head);
250 250
251 // We always match Head from _allAnswers, and the Body is Atom.a("true"). 251 // We always match Head from _allAnswers, and the Body is Atom.a("true").
252 #pragma warning disable 0168
252 foreach (bool l1 in YP.unify(Body, Atom.a("true"))) 253 foreach (bool l1 in YP.unify(Body, Atom.a("true")))
253 { 254 {
254 // The caller can assert another answer into this same predicate during yield, so we have to 255 // The caller can assert another answer into this same predicate during yield, so we have to
@@ -259,6 +260,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog
259 yield return false; 260 yield return false;
260 } 261 }
261 } 262 }
263 #pragma warning restore 0168
262 } 264 }
263 265
264 public IEnumerable<bool> retract(object Head, object Body) 266 public IEnumerable<bool> retract(object Head, object Body)
@@ -268,7 +270,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog
268 throw new PrologException("instantiation_error", "Head is an unbound variable"); 270 throw new PrologException("instantiation_error", "Head is an unbound variable");
269 object[] arguments = YP.getFunctorArgs(Head); 271 object[] arguments = YP.getFunctorArgs(Head);
270 272
271 // We always match Head from _allAnswers, and the Body is Atom.a("true"). 273 // We always match Head from _allAnswers, and the Body is
274 // Atom.a("true").
275 #pragma warning disable 0168
272 foreach (bool l1 in YP.unify(Body, Atom.a("true"))) 276 foreach (bool l1 in YP.unify(Body, Atom.a("true")))
273 { 277 {
274 // The caller can assert another answer into this same predicate during yield, so we have to 278 // The caller can assert another answer into this same predicate during yield, so we have to
@@ -283,6 +287,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.YieldProlog
283 } 287 }
284 } 288 }
285 } 289 }
290 #pragma warning restore 0168
286 } 291 }
287 292
288 /// <summary> 293 /// <summary>