[Issue 6148] Make templates smarter about instantiating with implicitly convertible arrays
https://issues.dlang.org/show_bug.cgi?id=6148 Andrei Alexandrescu changed: What|Removed |Added Version|unspecified |D2 --
[Issue 6148] Make templates smarter about instantiating with implicitly convertible arrays
http://d.puremagic.com/issues/show_bug.cgi?id=6148 Jonathan M Davis changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #5 from Jonathan M Davis 2012-01-20 23:21:33 PST --- I believe that the recent changes to IFTI to make dynamic array types tail-const for IFTI essentially fixes this. The issue with static arrays remains, but I'm increasingly convinced that not havin static arrays automatically treated as dynamic arrays with range-based functions is _good_ thing, since they're not ranges, and slicing them can be dangerous. If anything, I'd argue that static arrays should _never_ implicitly convert to dynamic arrays and that they should always have to be explicitly sliced to do the conversion. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6148] Make templates smarter about instantiating with implicitly convertible arrays
http://d.puremagic.com/issues/show_bug.cgi?id=6148 Steven Schveighoffer changed: What|Removed |Added CC||schvei...@yahoo.com --- Comment #4 from Steven Schveighoffer 2011-06-12 11:24:51 PDT --- Also, see bug 4998 as a possible solution, it can be modified to include more general cases besides literals. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6148] Make templates smarter about instantiating with implicitly convertible arrays
http://d.puremagic.com/issues/show_bug.cgi?id=6148 --- Comment #3 from Jonathan M Davis 2011-06-11 23:31:20 PDT --- Yeah. Bug# 5666 is related as well. Both bug# 4971 and bug# 5666 deal with specific instances where this enhancement would fix the problem. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6148] Make templates smarter about instantiating with implicitly convertible arrays
http://d.puremagic.com/issues/show_bug.cgi?id=6148 kenn...@gmail.com changed: What|Removed |Added CC||kenn...@gmail.com --- Comment #2 from kenn...@gmail.com 2011-06-11 23:23:31 PDT --- Bug 5666? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6148] Make templates smarter about instantiating with implicitly convertible arrays
http://d.puremagic.com/issues/show_bug.cgi?id=6148 --- Comment #1 from Jonathan M Davis 2011-06-11 20:06:08 PDT --- Related: http://d.puremagic.com/issues/show_bug.cgi?id=4971 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---