October 21, 2009 [Issue 3431] New: Automatic deduction of anonymous delegate signatures | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3431 Summary: Automatic deduction of anonymous delegate signatures Product: D Version: 2.034 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: pelle.mansson@gmail.com --- Comment #0 from Pelle Månsson <pelle.mansson@gmail.com> 2009-10-21 05:19:54 PDT --- Anonymous delegates cannot use automatic type deduction. For example: int f(int delegate(int) g) { return g(13); } void main() { f((auto x) { return x+13; }); } This fails to compile. Omitting the 'auto' also fails to compile. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 20, 2012 [Issue 3431] Automatic deduction of anonymous delegate signatures | ||||
---|---|---|---|---|
| ||||
Posted in reply to Pelle Månsson | http://d.puremagic.com/issues/show_bug.cgi?id=3431 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |FIXED --- Comment #1 from yebblies <yebblies@gmail.com> 2012-02-21 02:29:08 EST --- This works now, due to the recent improvements in delegate literal inference and conversions. (dmd 2.058) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation