Re: Data structures of mixed type

2016-09-08 Thread Andrea Fontana via Digitalmars-d-learn
On Thursday, 8 September 2016 at 08:56:13 UTC, Russel Winder wrote: What is the idiomatic way of having an array with a mix of int and float data? Maybe https://dlang.org/phobos/std_variant.html#.Algebraic ? Is relying on automated conversion of int to float acceptable? I don't think so:

Data structures of mixed type

2016-09-08 Thread Russel Winder via Digitalmars-d-learn
What is the idiomatic way of having an array with a mix of int and float data? Is relying on automated conversion of int to float acceptable? -- Russel. = Dr Russel Winder t: +44 20 7585 2200 voip: