|
From: | Daniel Diaz |
Subject: | Re: C interface confusion about char codes, lists and atoms... |
Date: | Wed, 03 Jul 2013 17:26:47 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 |
Le 03/07/2013 16:44, emacstheviking a
écrit :
Hi,Hi, +atom means you pass an atom (e.g. abc) and you get the internal reference of the atom in C (which is an integer) +chars means you pass a list of characters (e.g. [a,b,c]) and you get a NULL terminated string in C, ie. a char * (e.g. "abc") +code means you pass a list of char codes (e.g. [97,98,99] which is the same a "abc" in Prolog) an dyou get the same char * as above. See http://gprolog.univ-paris1.fr/manual/html_node/gprolog068.html Daniel
-- Ce message a été vérifié par MailScanner pour des virus ou des polluriels et rien de suspect n'a été trouvé. |
[Prev in Thread] | Current Thread | [Next in Thread] |