--
You received this message because you are subscribed to the Google Groups "SWI-Prolog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swi-prolog+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/swi-prolog.
For more options, visit https://groups.google.com/d/optout.
In my case, the variables are actually bound in the main "body", just prior to the branch, and i am interested in printing out the bound variables. Something like this:pred(X, Y) :-(test1(X),test2(Y)} -> true;message([X, Y]).
Trouble here is that X and Y are not bound in the true "branch", which triggers the warning.