ensure environment after goal execution in call_cleanup #106

This commit is contained in:
Vitor Santos Costa 2009-06-01 23:43:59 -05:00
parent 484595df5b
commit 627a4f8b1f

View File

@ -105,6 +105,8 @@ setup_call_catcher_cleanup(Setup, Goal, Catcher, Cleanup) :-
yap_hacks:enable_interrupts, yap_hacks:enable_interrupts,
yap_hacks:current_choice_point(CP0), yap_hacks:current_choice_point(CP0),
'$execute'(Goal), '$execute'(Goal),
% ensure environment for delayed variables in Goal
'$true',
yap_hacks:current_choice_point(CPF), yap_hacks:current_choice_point(CPF),
( (
CP0 =:= CPF -> CP0 =:= CPF ->