[m-rev.] [dotnet-foreign] diff: use System.Array for mercury arrays

Tyson Dowd trd at cs.mu.OZ.AU
Thu Aug 2 23:52:14 AEST 2001


On 02-Aug-2001, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> On 02-Aug-2001, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> > This is becoming a big enough task that I might leave it for a
> > while (I have some other things to do for a bit).  Everything is pretty
> > easy *except* allocating arrays.
> 
> It's only array__make_empty_array that is difficult.
> array__init is easy.  The code currently there is almost enough,
> you just need to add
> 
> 	for (int i = 0; i < Size; i++) {
> 		Array->SetValue(Item, i);
> 	}
> 

Good point.  In that case I will do it.  We can do without
make_empty_array for the moment.

> > I will post my changes to the compiler, and then leave off the library
> > support for a little while.
> 
> I think it would be easier to do the library support now while the
> concepts are all still in your head ;-)
> 
> I agree with leaving the RTTI support and hence array__make_empty_array
> for a later change, but if you're going to touch arrays at all, then
> I think it's worth at least fixing array__set, array__lookup,
> and array__init.

Yes, I will do this.

Tyson.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list