Re: variable heads of terms
Alexandre Tessier <[email protected]>
| Newsgroups | gmane.comp.gnu.prolog.general |
|---|---|
| Organization | Laboratoire d'Informatique Fondamental e d'Orléans |
| Message-ID | <[email protected]> |
X = reads, FACT =.. [X,tom,book].
Cliff Bender a écrit :
> Hello
>
> I'd like to be able to do something like the following:
>
> X=reads, FACT=X(tom,book).
>
> is there anything that will allow me to do this? Unfortunately, the
> previous code gives the following error:
>
> | ?- X=reads, FACT=X(tom,book).
> uncaught exception: error(syntax_error('user_input:12 (char:16) . or
> operator expected after expression'),read_term/3)
>
> Thanks for any help you can provide!
>
> CB
>
>
> _______________________________________________
> Users-prolog mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/users-prolog
>
>
--
http://www.univ-orleans.fr/SCIENCES/LIFO/Members/tessier/
tel LIFO: +33 (0)238494670 tel IUFM: +33 (0)238798417