Issue with free() for linked list implementation

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 4 02:05:01 PDT 2015


Namespace:

>> I've written a straight forward linked list implementation 
>> here:
>>
>> https://github.com/nomad-software/etcetera/blob/master/source/etcetera/collection/linkedlist.d
>>
>> Even though I'm using the GC to manage memory, maybe it will 
>> help you.
>
> Good idea to link to some existing code. Here is mine:
> https://github.com/Dgame/m3/blob/master/source/m3/List.d

In 99%+ of cases it's a bad idea to use a linked list.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list