www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9789] New: Ddoc for aliases should use new "alias x=y" syntax

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9789

           Summary: Ddoc for aliases should use new "alias x=y" syntax
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: hsteoh quickfur.ath.cx


--- Comment #0 from hsteoh quickfur.ath.cx 2013-03-22 18:40:55 PDT ---
Code:
===================
import std.stdio;
struct S {}

///
alias X = S;

void main() { }
===================

Compile with dmd -D, the docs look something like this:

===================
                                      test

   alias S X;
           blah blah blah

   --------------------------------------------------------------------------

   Page generated by [1]Ddoc.
===================

The old (confusing) alias syntax is used instead of the new, better "alias X=S"
syntax.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 22 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9789



--- Comment #1 from hsteoh quickfur.ath.cx 2013-03-22 18:43:02 PDT ---
Oops, pasted the wrong code, the code should read:

===================
import std.stdio;
struct S {}

/// blah blah blah
alias X = S;

void main() { }
===================

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 22 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9789



--- Comment #2 from hsteoh quickfur.ath.cx 2013-03-22 18:43:37 PDT ---
The HTML is:

<html><head>
        <META http-equiv="content-type" content="text/html; charset=utf-8">
        <title>test</title>
        </head><body>
        <h1>test</h1>
        <!-- Generated by Ddoc from test.d -->
<br><br>
<dl><dt><big><a name="X"></a>alias S <u>X</u>;
</big></dt>
<dd>blah blah blah<br><br>

</dd>
</dl>

        <hr><small>Page generated by <a
href="http://dlang.org/ddoc.html">Ddoc</a>. </small>
        </body></html>

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 22 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9789


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |andrej.mitrovich gmail.com
         AssignedTo|nobody puremagic.com        |andrej.mitrovich gmail.com


--- Comment #3 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-03-22
19:08:16 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1790

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 22 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9789



--- Comment #4 from github-bugzilla puremagic.com 2013-03-22 19:55:55 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/d111a38b49286f1f0596f1970f19182d6421d352
Fixes Issue 9789 - Use new alias syntax for ddoc output.

https://github.com/D-Programming-Language/dmd/commit/8f9fe3ba2dbeae16effc52310ed8ab82bf5af5fc
Merge pull request #1790 from AndrejMitrovic/Fix9789

Issue 9789 - Use new alias syntax for ddoc output.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 22 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9789


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 22 2013