Returning lists

From: Andreas Strack <strack_at_i5.informatik.rwth-aachen.de>
Date: Wed 06 Jun 2001 03:51:35 PM GMT
Message-ID: <3B1E5187.30301@i5.informatik.rwth-aachen.de>
Hello,
how do i return list from external C++-Functions, especially empty lists?

I tried to follow the examples in the embedding and interfacing manual, 
but it didn't work
(unify did not return EC_succeed).

For example I tried:

// return the empty list:
return unify(EC_word(EC_arg(1), nil()));

or:

return unify(EC_arg(1), nil());

or:

return unify(EC_arg(1), EC_word(nil()));

they all didn't work.
I would be glad if someone could help me out.


   Andreas Strack
Received on Wed Jun 06 16:51:12 2001

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