More type-flexible arrays?

thedeemon via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 16 00:47:33 PDT 2015


On Sunday, 14 June 2015 at 06:12:30 UTC, Ozan wrote:

> Is it possible to create arrays which has more then one type,
> f. ex. array[0] = 1; array[1] = "z"; array[2] = new clazz(),

Probably tuples are what you really need here.
http://dlang.org/phobos/std_typecons.html#.Tuple



More information about the Digitalmars-d-learn mailing list