users-prolog
[Top][All Lists]
Advanced

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

Re: Problem with the 'Find_Atom()' function


From: Erick Alphonse
Subject: Re: Problem with the 'Find_Atom()' function
Date: Mon, 18 Feb 2002 16:43:33 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010914

zze-PEX SOR balc031 FTRD/DTL/CAE wrote:

Hello,

 From a C++ program, I want to use the "Find_Atom()" prolog function.
When I specified "member" as argument, I expected that the function would
return the internal key of the "member" atom but I get "-1" instead!

The function is defined as such:
Find_Atom("member");

I thought the internal key corresponding to the "member" atom was already defined in the GNU prolog atom table but It seems that it does not exist!

If I use any predicates like "current_op", "assertz", the function always
returns "-1"!


I cannot help you for that, I faced the same problem. but try to use:

int   Create_Atom         (char *str)


explained in section 9.2.2.


Regards,
Erick.







reply via email to

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