[Issue 9186] Manifest constant can violate const correctness restrictions when empty
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 19 07:12:54 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9186
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-12-19 07:12:53 PST ---
(In reply to comment #0)
> The basic use case is having:
> foo(const(char)[]);
> and trying to pass a
> immutable(char)[] to it. Which is illegal.
Since when is that illegal? immutable and mutable both implicitly convert to
const.
--
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