Re: bug ?

"Daniel Diaz" <[email protected]>
Newsgroups gmane.comp.gnu.prolog.bugs
Message-ID <[email protected]>
Hi,

You should use / instead of \ in pathnames or else use a double backslash since
inside a quoted atom \ is an escape character. So use:
['Z:/mes_documents/GNU-Prolog/rules']
or
['Z:\\mes_documents\\GNU-Prolog\\rules']


Quoting olivier defour <[email protected]>:

> hello,
> I install gnu-prolog on my computer (winbdows XP) with
> "setup-gprolog-1.2.16.exe". I write a simple prolog file with
> wordpad, and I have this error when I try to consult it :
> 
>     GNU Prolog 1.2.16
>     By Daniel Diaz
>     Copyright (C) 1999-2002 Daniel Diaz
>     | ?- ['Z:\mes_documents\GNU-Prolog\rules'].
>     uncaught exception: error(syntax_error('user_input:1 (char:6) 
> unknown escape sequence'),read_term/3)
> 
> I have no problem when i copy my program from the file to GNU Prolog 
>  (Ctrl-C / Ctrl-Alt-V) :
> 
>     | ?- [user].
>     compiling user for byte code...
>     dynamic(cc/3).
>     [...]
>     user compiled, 72 lines read - 28353 bytes written, 67890 ms
>     (203 ms) yes
> 
> Do you know where the problem comes from ? (probably from and
> end-of-file
> character in my file no ?)
> 
> Best regards,
> 
>         Olivier Defour.
> 
> --
> Ce message a subi une analyse antivirus 
> par MailScanner ; il est vraisemblablement
> sans danger.
> 
> 



===============================================
                 Daniel Diaz
University of Paris 1      INRIA Rocquencourt
75013 Paris FRANCE      78153 Le Chesnay FRANCE
        web: http://pauillac.inria.fr/~diaz
        email: [email protected]





--
Ce message a subi une analyse antivirus 
par MailScanner ; il est vraisemblablement
sans danger.
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.