[Issue 6489] Should be able to copy double[] to float[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 27 16:18:57 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6489
--- Comment #5 from bearophile_hugs at eml.cc 2011-08-27 16:18:55 PDT ---
Please show one or more use case.
Do you want it to be like a reinterpret cast? Currently this works:
void main() {
ushort[4] a = [1, 2, 3, 4];
uint[2] b = cast(uint[2])a;
assert(b == [131073, 262147]);
}
Mixing reinterpret cast with conversion casts is a bad design.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list