Merge pull request #1115 from triska/get_char_type_test

ENHANCED: Character type checks for get_char/[1,2].
This commit is contained in:
Mark Thom
2021-11-28 11:53:15 -05:00
committed by GitHub

View File

@@ -1311,10 +1311,12 @@ char_code(Char, Code) :-
).
get_char(C) :-
error:can_be(character, C),
current_input(S),
'$get_char'(S, C).
get_char(S, C) :-
error:can_be(character, C),
'$get_char'(S, C).
can_be_number(N, PI) :-