[Issue 7105] relax inout rules
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 19 03:55:09 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7105
--- Comment #6 from Kenji Hara <k.hara.pg at gmail.com> 2012-02-19 03:55:08 PST ---
(In reply to comment #5)
> (In reply to comment #1)
> > Another use case is to support foreach on a container of arbitrary constancy,
> > by using
> >
> > int opApply(int delegate(ref inout(T)) dg) inout;
>
> I think that the inout parameter contravariant (I've filed as issue 7542) is
> necessary due to enable such signatures.
And I've posted issue 7543.
--
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