Source

gdc / gdc.test / compilable / extra-files / ddoc10.html

<html><head>
        <META http-equiv="content-type" content="text/html; charset=utf-8">
        <title>ddoc10</title>
        </head><body>
        <h1>ddoc10</h1>
<br><br>
<dl><dt><big>struct <u>Foo</u>(T);
<br>struct <u>Foo</u>(T,U);
</big></dt>
<dd>The foo<br><br>

</dd>
<dt><big>int <u>func1</u>(T)(T <i>x</i>);
</big></dt>
<dd>This basic case doesn't work very well. The template signature is
 documented twice, but the function signature (argument names and return
 type) is not documented at all. This comment is also repeated twice. <br><br>

</dd>
<dt><big>int <u>func2</u>(T, U)(T <i>x</i>, U <i>y</i>);
<br>int <u>func2</u>(T)(T <i>x</i>);
</big></dt>
<dd>This comment is also repeated twice, and the second function signature is
 not very well documented. <br><br>

</dd>
<dt><big>int <u>func3</u>(T, U)(T <i>x</i>, U <i>y</i>);
<br>int <u>func3</u>(T, U = int, V : long)(T <i>x</i>);
</big></dt>
<dd>This used to work adequately and documented both <u>func3</u> templates
 simultaneously. Now, it documents the first template twice and
 no longer documents the function argument and return types.<br><br>

</dd>
<dt><big>void <u>map</u>(char <i>rs</i>);
<br>void <u>map</u>(int <i>rs</i>);
</big></dt>
<dd>blah<br><br>

</dd>
<dt><big>void <u>map2</u>()(char <i>rs</i>);
<br>void <u>map2</u>()(int <i>rs</i>);
</big></dt>
<dd>blah<br><br>

</dd>
<dt><big>void <u>map3</u>(char <i>rs</i>);
</big></dt>
<dd>blah http://www.map3.com <u>map3</u><br><br>

</dd>
<dt><big>void <u>map4</u>(string s)(char <i>rs</i>);
</big></dt>
<dd>blah http://www.map.com map<br><br>

</dd>
<dt><big>template <u>map5</u>(string s)</big></dt>
<dd>blah http://www.map.com map<br><br>

</dd>
<dt><big>struct <u>bar6</u>;
</big></dt>
<dd>blah <br><br>

</dd>
<dt><big>struct <u>Foo7</u>(T);
</big></dt>
<dd>template bodies <br><br>

<dl><dt><big>void <u>bar</u>();
</big></dt>
<dd>Attempt two:  Inside.
Attempt one:  Doc outside static if.<br><br>

</dd>
<dt><big>void <u>abc</u>();
</big></dt>
<dd>the <u>abc</u> function should be static <br><br>

</dd>
</dl>
</dd>
<dt><big>abstract class <u>Foo8</u>;
</big></dt>
<dd>show abstract <br><br>

</dd>
<dt><big>void <u>bug4878</u>(string <i>a</i> = ")");
</big></dt>
<dd><i>a</i> stray ) mustn't foul the macros<br><br>

</dd>
<dt><big>struct <u>S</u>;
</big></dt>
<dd><br><br>
<dl><dt><big>const pure nothrow  this(long <i>ticks</i>);
</big></dt>
<dd><br><br>
</dd>
<dt><big>const pure nothrow void <u>foo</u>(long <i>ticks</i>);
</big></dt>
<dd><br><br>
</dd>
</dl>
</dd>
<dt><big>float <u>f10</u>(float <i>a</i>, float <i>b</i>);
</big></dt>
<dd>Produces something in (<i>a</i>;<i>b</i>] <br><br>

</dd>
<dt><big>float <u>h10</u>(float <i>a</i>, float <i>b</i>);
</big></dt>
<dd>Produces something in [<i>a</i>;<i>b</i>) <br><br>

</dd>
<dt><big>void <u>bug6090</u>(string f = "$(B b)", char g = ')')(string <i>h</i> = "$(", string <i>i</i> = "$)");
</big></dt>
<dd><br><br>
</dd>
<dt><big>struct <u>T</u>;
</big></dt>
<dd><br><br>
<dl><dt><big>this(A...)(A <i>args</i>);
</big></dt>
<dd><br><br>
</dd>
</dl>
</dd>
</dl>

        <hr><small>Page generated by <a href="http://www.digitalmars.com/d/2.0/ddoc.html">Ddoc</a>. </small>
        </body></html>