Bug 7040 – Phobos must use "version/else version" blocks for proper documentation generation

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-11-30T17:02:00Z
Last change time
2011-12-06T12:42:15Z
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2011-11-30T17:02:51Z
As reported here: http://stackoverflow.com/questions/8335202/can-i-rely-on-the-presence-of-shell/8335304#8335304 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() { }
Comment #1 by issues.dlang — 2011-12-06T12:42:15Z