digitalmars.D.bugs - [Issue 12425] New: allow default values for "auto ref"
- d-bugmail puremagic.com (19/19) Mar 20 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12425
- d-bugmail puremagic.com (10/10) Mar 20 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12425
https://d.puremagic.com/issues/show_bug.cgi?id=12425 Summary: allow default values for "auto ref" Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: thecybershadow gmail.com 18:29:40 EET --- E.g.: void foo(T)(auto ref T t = 5) The parameter becomes a reference if the default expression is an lvalue (e.g. *new int(5)). -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 20 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12425 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs eml.cc This was allowed, and it was "recently" disallowed. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 20 2014