users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question...


From: Fergus Henderson
Subject: Re: Question...
Date: Sun, 18 Feb 2001 07:37:30 +1100

On 17-Feb-2001, Pablo Sabatino <address@hidden> wrote:
>   I have a question about the Prolog list.
...
>   for example:
> 
>   domains
>       name=integer
>       list=name*
>   predicates
>       name(name)
>       give_names(list)
>   clauses
>       name(pablo).
>       name(andy).
>       name(kim).

This is the GNU Prolog list.  The code that you have posted is written
in Visual/PDC/Turbo Prolog, which is a quite different language than
standard (ISO) Prolog.  GNU Prolog supports standard Prolog, not
Visual/PDC/Turbo Prolog.

Furthermore, your question is a FAQ: check the comp.lang.prolog FAQ list.
(The answer, incidentally, is to use the builtin "findall" predicate.)

-- 
Fergus Henderson <address@hidden>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]