swi read/1 problem
Next message: Roberto Bagnara: "Re: Giant bug in XSB 2.6?"
Date: 26 Oct 2004 09:18:39 -0700
I have a pl file:
main :-
repeat,
write('> '),
read(X),
(X==quit->true;fail).
Which, if I run from the SWI-Prolog Editor, I get the following error:
17 ?- main.
> test.
ERROR: Stream user_input:2:330 Syntax error: Operator expected
18 ?-
However, if I run from SWI-Prolog, separate from the editor, it works
perfectly. Is there a bug with the editor, or am I doing something
wrong.
Thanks
Steve
Next message: Roberto Bagnara: "Re: Giant bug in XSB 2.6?"
Relevant Pages
- Re: [OT] Fuck the police (again)
... Problem was any moron could see within 2 seconds that they were fakes. ... just hated him on TV) he has balls as an editor. ... Allow me to demonstrate as I simulate the "urine" stream from A. Notice the ... similarity in droplet size and stream flow. ... (uk.comp.sys.mac) - Re: writing to a binary file
... >> When I use an editor ... >>I should see only garbage ... The stream will be automatically ... you should return an int: ... (alt.comp.lang.learn.c-cpp) - Re: All programs are undefined
... Now using a hex editor I ... new-line on the last line of a text stream. ... editor I find the editor has added the newline to the last line of the ... chose to transform a text file without a trailing new-line into one ... (comp.lang.c) - Re: I really need help on this c program!!! pleaaasseeee
... Open up a text editor ... Edit code ... Compile code ... Repeat from until you get the results you like ... (comp.lang.c) - Re: Change default encoding
... No,I mean with VS editor not with stream writer..after creating some class ... files I want to be saved with Unicode encoding.. ... Prev by Date: ... (microsoft.public.dotnet.languages.csharp) |
|