Re: a question about reading in alphabet letters

"Richard A. O'Keefe" <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 24/03/2014, at 9:51 PM, Jan Wielemaker wrote:
>> This has nothing to do with UTF-8.
> 
> I thought it had, but it appears get0/1 is equivalent to get_code/1 in
> the current implementation.

My point was that whether there was an encoding issue
or not, the code as written was *still* wrong because
it called get0/2 a second time expecting the previously
read character still to be there.

Using get_char/2 or get_code/2 would not change that.

I should have pointed to 'read_util' on the SWI
web-site.  Here it is:

http://www.swi-prolog.org/pldoc/man?section=readutil
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.