www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7040] New: Phobos must use "version/else version" blocks for proper documentation generation

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

           Summary: Phobos must use "version/else version" blocks for
                    proper documentation generation
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com



17:02:51 PST ---
As reported here:


The real issue is this:

/**
Doc comment..
*/
version (Posix) void test()
{
}

version (Windows) void test()
{
}

If you compile this on Posix, the docs get generated. If you compile it on
Windows, they *don't* get generated (The std.process has the opposite case, on
Windows the docs are generated but not on Posix). You need to use an else
version block instead:

/**
Doc comment..
*/
version (Posix) void test()
{
}
else version (Windows) void test()
{
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 30 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7040


Jonathan M Davis <jmdavisProg gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jmdavisProg gmx.com
         Resolution|                            |FIXED



PST ---
Fixed.

https://github.com/D-Programming-Language/phobos/commit/9f9028829ce8d47826226497ce7b8e46f9168a7b

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 06 2011