linked list

bearophile bearophileHUGS at lycos.com
Sun Sep 26 10:16:16 PDT 2010


Joel Christensen:

> Not very much, 2 players, mines ad lazer bolts are added and removed 
> when used. I guess around 10.

I see, then use a dynamic array, plus append, and few functions like remove. It's faster and simpler. In most situations today (in a language that allows mutability) linked lists are the wrong data structure to use.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list