[Issue 10334] New: ddoc should prefer simple syntax for template instantiations with one parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 11 07:46:43 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10334
Summary: ddoc should prefer simple syntax for template
instantiations with one parameter
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: ddoc
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-06-11 07:46:42 PDT ---
-----
/** */
template templ(T...)
if (someConstraint!T)
{
}
-----
This currently emits:
> template templ(T...) if (someConstraint!(T))
But for readability purposes it can be:
> template templ(T...) if (someConstraint!T)
--
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