On Friday, June 16, 2017 23:08:58 Jolly James via Digitalmars-d wrote: > On Friday, 16 June 2017 at 19:42:44 UTC, Cym13 wrote: > > I'm unclear about your intent: do you want a compile-time list > > I am looking for something similar to C#'s generic list. > > >>> interface IList<T> > >>> { > >>> > >>> int Count { get; } > >>> > >>> void Add(T item); > >>> void Remove(T item); > >>> > >>> T this[int index]; > >>> > >>> // [...] > >>> > >>> }
I see that I completely misunderstood the question then. I thought that you were trying to do stuff with lists at compile time. For that, I'd just dynamic arrays, but there's also DList in std.container, and http://code.dlang.org/packages/emsi_containers has several containers. - Jonathan M Davis