mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
Mantis#1931. Thank you kindly, Kinoc for a patch that:
* Yield Prolog 1.0.1 Released : it passes all but 9 of the 421 tests in the ISO Prolog test suite (97.8%) . * support dynamic predicates and rules. * support 'import' to use external static functions improves connection to C# functions * Matches Yield Prolog r831
This commit is contained in:
@@ -71,6 +71,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
|
||||
return YP.unify(Bag, result);
|
||||
}
|
||||
|
||||
// disable warning on l1, don't see how we can
|
||||
// code this differently
|
||||
#pragma warning disable 0168
|
||||
|
||||
/// <summary>
|
||||
/// This is a simplified findall when the goal is a single call.
|
||||
/// </summary>
|
||||
@@ -81,12 +85,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
|
||||
public static IEnumerable<bool> findall(object Template, IEnumerable<bool> goal, object Bag)
|
||||
{
|
||||
FindallAnswers findallAnswers = new FindallAnswers(Template);
|
||||
// disable warning on l1, don't see how we can
|
||||
// code this differently
|
||||
#pragma warning disable 0168
|
||||
foreach (bool l1 in goal)
|
||||
findallAnswers.add();
|
||||
#pragma warning restore 0168
|
||||
return findallAnswers.result(Bag);
|
||||
}
|
||||
|
||||
@@ -99,13 +99,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
|
||||
public static List<object> findallArray(object Template, IEnumerable<bool> goal)
|
||||
{
|
||||
FindallAnswers findallAnswers = new FindallAnswers(Template);
|
||||
// disable warning on l1, don't see how we can
|
||||
// code this differently
|
||||
#pragma warning disable 0168
|
||||
foreach (bool l1 in goal)
|
||||
findallAnswers.add();
|
||||
#pragma warning restore 0168
|
||||
return findallAnswers.resultArray();
|
||||
}
|
||||
#pragma warning restore 0168
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user