[Issue 11966] Regression 2.065.b1: inout(const(char))[] doesn't convert to inout(char)[]

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 23 02:09:19 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11966



--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2014-01-23 02:09:13 PST ---
(In reply to comment #2)
> (In reply to comment #1)
> > https://github.com/D-Programming-Language/dmd/pull/3138
> > 
> > 'inout const' type qualifier is introduced by fixing issue 6930, but its first
> > implementation had not been perfect.
> 
> what does 'inout const' mean?

- A common type qualifier between immutable and inout
- If inout function returns inout(const(T)), it will be deduced to const(T),
immutable(T), or inout(const(T)). Different from inout(T), it won't be  deduced
to T because 'const' sticks.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list