Say I am listing facts:
letter(a).
letter(b).
letter(c).
...
letter(z).
vowel(a).
consonant(b).
consonant(c).
consonant(d).
vowel(e).
consonant(f).
...
consonant(z).
If I declare the rules in 'alphabetical' order, I get the following warnings in the console:
Warning: /Users/…/prolog-example.pl:31:
Clauses of vowel/1 are not together in the source-file
Warning: /Users/…/prolog-example.pl:32:
Clauses of consonant/1 are not together in the source-file
Warning: /Users/…/prolog-example.pl:35:
Clauses of vowel/1 are not together in the source-file
Warning: /Users/…/prolog-example.pl:36:
Clauses of consonant/1 are not together in the source-file
Warning: /Users/…/prolog-example.pl:51:
Clauses of vowel/1 are not together in the source-file
But if I do the following:
letter(a).
letter(b).
letter(c).
...
letter(z).
consonant(b).
consonant(c).
consonant(d).
...
consonant(z).
vowel(a).
vowel(e).
vowel(i).
vowel(o).
vowel(u).
vowel(y).
I dont get the warnings. Are the warnings just warnings
or are they actual errors?