[Issue 7105] relax inout rules
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 19 03:37:44 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7105
--- Comment #5 from Kenji Hara <k.hara.pg at gmail.com> 2012-02-19 03:37:40 PST ---
(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.
--
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