[Issue 9240] (Regression: 2.058) non-const does not implicitly convert to const
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 14 07:43:20 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9240
--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-01-14 07:43:19 PST ---
(In reply to comment #2)
> This is not a bug. See the examples in issue 4251 for how allowing this would
> break const.
Exact comment which explains this:
http://d.puremagic.com/issues/show_bug.cgi?id=4251#c9
I think this could go to the spec as a small note. It was brought up on IRC by
someone converting some C++ code to D, and at first sight it seemed like a
rejects-valid. A few of us agreed and I filed it, but comment #9 above explains
the problem perfectly.
--
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