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:
import std.stdio;
void main()
{
int i = 12345678;
float f = i;
writeln(f);
}
Andrea
