From: Georg Fette <>
Date: Mon 06 Jan 2003 09:05:24 AM GMT
Message-ID: <001301c2b562$c3a99ad0$0400a8c0@wunder>
I tried to use the method EC_word::arg with a dll-function called in ecipse.
My code looks like this :

extern "C" EC_EXPORT int p_tim_get_constants() {
 EC_word help = nil(), test = nil();
 long x;

 test = list(EC_word("1"), test);
 test = list(EC_word("2"), test);
 test = list(EC_word("3"), test);
 test = list(EC_word("4"), test);
 test = list(EC_word("5"), test);
 test.arg(x, help);
 unify(EC_arg(2), help);
 return EC_succeed;

I thought, the method I'm interested in does return the nth item of the
asked list :

" int EC_word::arg(const int,EC_word&)
checks whether the EC_word is a compound term and if so, returns its nth
argument. "

My example-code does return very strange results.
Did I understand something seriously wrong.
Thx for answers.

Georg Fette
Received on Mon Jan 06 00:06:56 2003

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:20 PM GMT GMT