Re: array question 97 00:45:17 am

From: Andrew Helm (ashe@IGLOU.COM)
Date: 10/04/97


>
> > On Sat, 4 Oct 1997, Andrew Helm wrote:
> >
[snip]

I didn't write anything that you just quoted me saying. :)

> Why not have a dynamic array, or linked list?  This way, you're not
> wasting valuable memory with those '0' values.  Just a thought.

Why not have them? Well a linked list can fragment memory and a
dynamic array requires you to remalloc()/move around memory a
lot when you do resizing. Both would work just fine, but why
not leave it as an array of 100 ints? I dunno if it matters
that much in the long run.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST