Update custom constraint example#24
Conversation
Syntax usage was outdated (since clpfd days)
|
I suppose it should be updated for scryer as well but somehow it rejects the syntax for mysterious reasons. |
|
Turns out that this too isn't complete yet: after I load that code (that has Can @triska clarify of a minimum working example? update: adding |
declare run_propagator/4 as multifile and format example
UWN
left a comment
There was a problem hiding this comment.
Just because I see it: Put round brackets around the argument of the directive and since this is a non-terminal use //. Thus replace
:- multifile clpz:run_propagator/2.
by
:- multifile(clpz:run_propagator//2).
|
Ulrich, I could change it but Sicstus rejects the double slash as "invalid predicate indicator". Maybe we leave it as is for Sicstus but update the scryer version instead? |

Syntax usage was outdated (since clpfd days).
It took me quite some head scratcing to realise that
run_propagatorextensions should be a dcg rule nowadays!