Re: asserta/retract via C++

aLu <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
Basically my code looks like this:

PlTerm arg[10];
int func = Find_Atom(asserta);
arg[0] = Mk_String("lives(elvis)");

Pl_Query_Begin(TRUE);
Pl_Query_Call(func, 1, arg);


//If the same program calls something like this (in another function):

int func = Find_Atom(listing); 
Pl_Query_Begin(TRUE);
Pl_Query_Call(func, 0, arg2);


///




It prints something like this out to the console:

number1(abc,cba).                          // these are dynamic predicates
number1(cga,bae).
number2(get,gea).

'lives(elvis)'.                            // those brackets are my problem!

someotherpredicate(gla,era).


So how can I avoid that my predicate appears in brackets?
Is it about Mk_String? Mk_Atom(Create_Atom("lives(elvis)")) 
gives the same result.

Thanks for reading
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.