Dear CLP users, I am working on to handle floundering case. Following is the script. Even if set the trigger on in my main script the suspension data does not change before and after the trigger is pulled. %Left function left(STR, Index, STRN):- (var(STR) -> suspend(left(STR, Index, STRN), 0, STR->inst) ; var(STRN),var(Index) -> suspend(left(STR, Index, STRN), 0, trigger(hello), S), get_suspension_data(S, priority, P), get_suspension_data(S, goal, G), get_suspension_data(S, module, M), get_suspension_data(S, qualified_goal, QG), get_suspension_data(S, invoc, I), get_suspension_data(S, state, Z), writeln([P, G, M, QG, I, Z]) ; writeln("hello111"), substring(STR, 0, Index, _, STRN)). I am not able to understand why ? Thanks and Regards, Shrirang Edgaonkar ______________________________________________________________________ Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.Received on Fri Jun 26 2015 - 00:39:01 CEST
This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:21 CEST