Templated Lists
Stefan Koch via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jun 16 16:28:26 PDT 2017
On Friday, 16 June 2017 at 23:08:58 UTC, Jolly James 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];
>>>>
>>>> // [...]
>>>> }
just use d's dynamic arrays :)
More information about the Digitalmars-d
mailing list