[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:26:56 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9186
--- Comment #2 from monarchdodra at gmail.com 2012-12-19 07:26:55 PST ---
(In reply to comment #1)
> (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.
Typo. My apologies:
> The basic use case is having:
> foo(const(char)[][]);
> and trying to pass a
> "immutable(char)[][]" to it. Which is illegal.
--
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