[Issue 10325] ddoc: template constraints inconsistently shown in generated html
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 11 07:31:43 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10325
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-06-11 07:31:41 PDT ---
Test-case:
-----
module ddoc10325;
/** */
template templ(T...)
if (someConstraint!T)
{
}
/** */
void foo(T)(T t)
if (someConstraint!T)
{
}
void main() { }
-----
The constraints for 'foo' are not shown.
Constraints should be part of the documentation, they form part of the
interface.
When a user gets an error about instantiating a template, he will get the name
of the template and its constraints, it only makes sense to also include the
constraints in the documentation.
--
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