avoid unnecessary search
This commit is contained in:
parent
8c605a65fe
commit
530764e196
@ -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
|
||||||
;
|
;
|
||||||
|
Reference in New Issue
Block a user