Re: : GNU prolog bug
- From: newser.bbs@xxxxxxxxxxxxxxxxx
- Date: 27 Apr 2006 17:45:04 -0700
Jan Wielemaker 寫道:
On 2006-04-26, newser.bbs@xxxxxxxxxxxxxxxxx <newser.bbs@xxxxxxxxxxxxxxxxx> wrote:
the follwoing is recording what happened during my testing the GUN
prolog
============================================================
GNU Prolog 1.2.16
By Daniel Diaz
Copyright (C) 1999-2002 Daniel Diaz
| ?- [user].
compiling user for byte code...
likes(marry , A):-
A = john.
user compiled, 3 lines read - 269 bytes written, 30031 ms
Using 30 seconds to compile one clause looks like a bug to me
Oh ! That was because I type Ctrl-D too slowly. Not the gprolog's
fault.
(hopefully in gathering the time statistics).
(641 ms) yes
| ?- likes (marry ,marry).
uncaught exception: error(syntax_error('user_input:4 (char:8) . or
operator expected after expression'),read_term/3)
=============================================================
See ? This prolog can't tell if marry likes marry .
GNU-Prolog is sufficiently stable not to have this type of elementary
bugs. The error is a syntax error and GNU Prolog is right: it is NOT
allowed to put a space between the predicate name and the ( that opens
Thanks a lot !
I used to use the turbo prolog , thus I can't realize what wrong with
me until
you told me.
the argument list. Thus: likes(marry, marry). Which, before you
submit another bug, will say 'no'.
Cheers --- Jan
.
- References:
- [REPORT] : GNU prolog bug
- From: newser . bbs
- Re: [REPORT] : GNU prolog bug
- From: Jan Wielemaker
- [REPORT] : GNU prolog bug
- Prev by Date: Re: how to make a list of N 1s
- Next by Date: BUG REPORT : SWI-prolog
- Previous by thread: Re: [REPORT] : GNU prolog bug
- Next by thread: how to make a list of N 1s
- Index(es):
Relevant Pages
|
|