[Issue 7543] inout opApply should work properly
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 10 03:45:17 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7543
--- Comment #14 from Stewart Gordon <smjg at iname.com> 2012-03-10 03:45:21 PST ---
(In reply to comment #10)
> void foo(inout(int)* x, inout(int)* delegate(inout(int)* x) dg)
> {
> inout(int)* bar(inout(int)* m) { return m;}
> auto dg2 = &bar;
> assert(typeof(dg2) == typeof(dg)); // ???
Whether we pick (a) or (b), it should apply equally to declarations in the body
of foo as to parameters of foo itself. So this assert would pass either way.
--
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