[Issue 6148] Make templates smarter about instantiating with implicitly convertible arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 20 23:21:35 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6148
Jonathan M Davis <jmdavisProg at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Jonathan M Davis <jmdavisProg at gmx.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list