-
-
Notifications
You must be signed in to change notification settings - Fork 206
Open
Description
MacOS, SWIP v9.3.28
Using the following test code:
:- module(ixtest,[p/2]).
p(real, (-1.0e+16,1.0e+16)).
p(boolean, (0,1)).
a unwanted CP occurs for this query:
?- p(real,(X,Y)).
X = -1.0e+16,
Y = 1.0e+16
% ixtest:p(real,(-1.0e+16,1.0e+16)) left a choice point in alternate clause (after success)
% /Users/rworkman/Documents/PrologDev/SWI_Prolog/ixtest.pl:3: clause succeeded
% /Users/rworkman/Documents/PrologDev/SWI_Prolog/ixtest.pl:4: next candidate clause
% Called from
% [11] toplevel_call(user:user: ...) at /Applications/SWI-Prolog9.3.28.app/Contents/Resources/swipl/boot/toplevel.pl:1541
X = -1.0e+16,
Y = 1.0e+16 ;
false.
It depends on the argument pattern:
?- p(real,R).
R = (-1.0e+16, 1.0e+16).
?-
It appears to have been introduced in v9.3.19. Using v9.3.18:
?- p(real,(X,Y)).
X = -1.0e+16,
Y = 1.0e+16.
?-
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels