avoid unnecessary search

This commit is contained in:
Vitor Santos Costa 2015-01-15 23:07:35 -08:00
parent 8c605a65fe
commit 530764e196

View File

@ -598,6 +598,7 @@ yap_flag(V,Out) :-
; ;
'$swi_current_prolog_flag'(V, Current) '$swi_current_prolog_flag'(V, Current)
-> ->
!,
(var(Out) -> (var(Out) ->
Current = Out Current = Out
; ;