[eclipse-clp-users] Floundering case

From: Edgaonkar, Shrirang <Shrirang.Edgaonkar_at_nttdata.com>
Date: Fri, 26 Jun 2015 00:38:46 +0000
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.2.0 : Sun Jul 05 2015 - 18:13:26 CEST