[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Typol, Lisp and Prolog
- Subject: Re: Typol, Lisp and Prolog
- From: td@almeria.inria.fr (Thierry Despeyroux)
- Date: 19 Oct 1994 09:07:59 +0100
In article <1994Oct17.115608.28684@sophia.inria.fr>, mauras@unantes.univ-nantes.fr (Christophe Mauras) writes:
|> I don't know anything about Prolog, so I had some problems
|> when calling Lisp functions from Prolog :
|> getsym("slen",F),
|> doesn't work (as in "The Typol Manual", p 89)
|>
|> But, the following works properly :
|> getsym('slen',F),
There is a bug in the documentation.
Typol strings are implemented as prolog atoms.
So in Typol it is getsym("slen",F),
and in prolog it is getsym('slen',F).
(In this example you can also write getsym(slen,F) in prolog because the
first letter is in lowercase and there is no special character in this name)
Thierry
--
Send contributions and compliments to centaur@sophia.inria.fr. Registration
and administrative matters should be sent to centaur-request@sophia.inria.fr.
+---------------------------------------------------------------------------+
| Thierry Despeyroux | email: Thierry.Despeyroux@sophia.inria.fr |
| I.N.R.I.A. Sophia-Antipolis | phone: +33 93 65 77 07 fax: +33 93 65 77 66 |
+---------------------------------------------------------------------------+