From: naudts g. <nau...@ya...> - 2004-08-27 22:29:25
|
Hallo Jos, I'm afraid it still isn't good. See following code: I think the environment must be copied each time. This is because unify changes it. I don't see immediately a more elegant solution. // @@ euler paths var g = 1; while (g<goalList.length) { envCopy = []; j = 0; for (item in environment) { envCopy[item.name] = item; } if (goalList[g].pending && goalList[g].index == i && unify(goalList[0], goalList[g], envCopy) != null) break; g++; } if (g<goalList.length) continue; Cheers, Guido. Note: forwarded message attached. __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail |