Hi, does the eclipse compiler support and optimize tail recursion? Is this code a real tail recursion? randomGame(CurrentState, CurrentState, ActionPathsTemp, ActionPathsTemp) :- terminal_State(CurrentState). randomGame(CurrentState, TerminalState, ActionPaths, ActionPathsTemp) :- findall(Move, random_Move(CurrentState, _Role, Move), Moves), nextState(CurrentState, Moves, NextState), randomGame(NextState, TerminalState, ActionPaths, [Moves|ActionPathsTemp]). Thank you for your help! Greetings, MartinReceived on Tue May 05 2009 - 15:52:59 CEST
This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST