How can I get rid of the warnings on singleton variables?

Typos are in most cases singleton variables. The compiler reports singleton variables to help you detect typos. You can set the Prolog flag singleton to off to get rid of the warnings.
      set_prolog_flag(singleton,off)
A better way to get rid of the warnings is to rename singleton variables such that they all start with the underscore _.



Neng-Fa Zhou 2012-01-03