]> Repositorios git - scryer-prolog.git/commit
instead of a type error, use a domain error
authorMarkus Triska <[email protected]>
Sat, 18 Apr 2020 12:38:03 +0000 (14:38 +0200)
committerMarkus Triska <[email protected]>
Sat, 18 Apr 2020 12:39:30 +0000 (14:39 +0200)
commit1f7e18f2a9e9893d5a5f2199e1571cbcce80fc82
treeb059b83cf19fc94e14e1cdf10b309d9e17a708c1
parent105e9c8e8887dbbb281454cabca323cb07dbe1b1
instead of a type error, use a domain error

The preceding use of atom_length/2 already ensures that C has the
correct type (i.e., atom). However, its domain may still be wrong,
if its length is greater than 1.
src/prolog/lib/charsio.pl