[Issue 6489] Should be able to copy double[] to float[]
https://issues.dlang.org/show_bug.cgi?id=6489 Andrei Alexandrescu changed: What|Removed |Added Version|unspecified |D2 --
[Issue 6489] Should be able to copy double[] to float[]
https://d.puremagic.com/issues/show_bug.cgi?id=6489 Denis Shelomovskij changed: What|Removed |Added Keywords|rejects-valid | Status|NEW |RESOLVED CC||verylonglogin@gmail.com Resolution||WONTFIX --- Comment #8 from Denis Shelomovskij 2013-11-07 22:22:04 MSK --- I'll WONTFIX this terrible proposal in a try to stop it magically affect dmd to such a degree as Issue 11470. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6489] Should be able to copy double[] to float[]
http://d.puremagic.com/issues/show_bug.cgi?id=6489 --- Comment #5 from bearophile_h...@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: ---
[Issue 6489] Should be able to copy double[] to float[]
http://d.puremagic.com/issues/show_bug.cgi?id=6489 --- Comment #4 from David Simcha 2011-08-27 07:34:39 PDT --- The compelling rationale is consistency. I can assign the elements of a float[] to a double[] one-by-one, so why not with array-wise operations? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6489] Should be able to copy double[] to float[]
http://d.puremagic.com/issues/show_bug.cgi?id=6489 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com Platform|Other |All OS/Version|Windows |All Severity|normal |enhancement --- Comment #3 from Walter Bright 2011-08-15 11:50:21 PDT --- What is the compelling rationale for this? Is there a use case that shows it? (Also marked as an enhancement request, as it is not a bug.) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6489] Should be able to copy double[] to float[]
http://d.puremagic.com/issues/show_bug.cgi?id=6489 --- Comment #2 from David Simcha 2011-08-13 11:53:29 PDT --- (In reply to comment #1) > Why? And only double->float? int->long too? Of course int -> long should work, too. Same with anything where implicit conversions are allowed. It's just that double -> float is the first case I stumbled upon. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6489] Should be able to copy double[] to float[]
http://d.puremagic.com/issues/show_bug.cgi?id=6489 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Comment #1 from bearophile_h...@eml.cc 2011-08-13 07:05:04 PDT --- Why? And only double->float? int->long too? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---