Is there such concept of a list in D?

Steven Schveighoffer schveiguy at gmail.com
Sat Dec 10 06:41:22 UTC 2022


On 12/10/22 1:11 AM, thebluepandabear wrote:
> 
> I was wondering more if there is an object oriented way of creating 
> arrays, like in Java there is an `ArrayList`, in C++ there is 
> `std::vector`, etc.

In D, you just use `T[]` for an array, it's similar to `std::vector<T>`.

-Steve


More information about the Digitalmars-d-learn mailing list