www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3711] New: Ddoc does not generate nothing if std.stdio is imported

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

           Summary: Ddoc does not generate nothing if std.stdio is
                    imported
           Product: D
           Version: 2.038
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: curoles yahoo.com



Steps to Reproduce:

Create file ddoc_bug1.d:
1 /// comment out the line below to see this 2.039
2 import std.stdio;
3 void main(){}

call dmd -D ddoc_bug1.d

Result:

"body" is empty in the generated html file.

<html><head>
...
    <h1>ddoc_bug1</h1>
    <!-- Generated by Ddoc from ddoc_bug1.d -->
<br><br>
<hr><small>Page generated by <a
...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 15 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3711


Igor Lesik <curoles yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |curoles yahoo.com



Ok. I see what happend: "Documentation comments not associated with a
declaration are ignored". Seems that comments can't be associated with
ImportDeclaration.

If it is a feature, then it is kind of confusing one, because if there is no
ModuleDeclaration then all comments preceding ImportDeclaration disapper,
instead of being applied to the entire module.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 16 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3711


Igor Lesik <curoles yahoo.com> changed:

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


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 04 2010