Re: [REPORT] : GNU prolog bug
- From: Jan Wielemaker <jan@xxxxxxxxxxxxxxxxxxx>
- Date: 26 Apr 2006 08:38:36 GMT
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
(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
the argument list. Thus: likes(marry, marry). Which, before you
submit another bug, will say 'no'.
Cheers --- Jan
.
- Follow-Ups:
- Re: : GNU prolog bug
- From: newser . bbs
- Re: : GNU prolog bug
- References:
- [REPORT] : GNU prolog bug
- From: newser . bbs
- [REPORT] : GNU prolog bug
- Prev by Date: [REPORT] : GNU prolog bug
- Next by Date: how to make a list of N 1s
- Previous by thread: [REPORT] : GNU prolog bug
- Next by thread: Re: : GNU prolog bug
- Index(es):
Relevant Pages
|
|