Re: Re: passing structures from C++ to ECLiPSe

From: Kish Shen <ks15_at_icparc.ic.ac.uk>
Date: Thu 18 Aug 2005 03:48:13 PM GMT
Message-ID: <rqmznf2qma.fsf@cow.icparc.ic.ac.uk>
Dear Jan,

I took a look at your problem, and it seems that there is a problem with
using = to assign to an indexed element of EC_refs. We are looking into why
this is so.

You can use EC_refs set method to do what you want:

     for (int i=0; i<3; ++i) {
         T.set(i, term(task,names[i],durations[i]));
     }

>I think that even my first solution of the list construction wasn't wrong,

Yes, you can use list(T) construct to construct a list from an EC_refs.

Cheers,

Kish Shen
IC-Parc
Imperial College London
U.K.
Received on Thu Aug 18 16:54:32 2005

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