D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8160 - Ddoc doesn't emit docs for manifest constants
Summary: Ddoc doesn't emit docs for manifest constants
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: ddoc
Depends on:
Blocks:
 
Reported: 2012-05-29 15:53 UTC by Alex Rønne Petersen
Modified: 2012-05-30 10:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Alex Rønne Petersen 2012-05-29 15:53:53 UTC
It appears that Ddoc does not emit any documentation for manifest constants, even when they are marked public. I assume that this is a bug, since manifest constants are part of the public interface of a library.
Comment 1 Mike Wey 2012-05-30 10:47:50 UTC
There doesn't seem to be any problem with dmd 2.059 (Linux 64bits).

This code:
/// Defines the version of ImageMagick where these headers are based on.
enum MagickLibVersion = 0x677;
///ditto
enum MagickLibVersionText = "6.7.7";

Results in the folowing documentation:
file:///home/mike/Projects/DMagick/docs/c/magickVersion.html
Comment 2 Alex Rønne Petersen 2012-05-30 10:50:58 UTC
Indeed... turns out my code was completely wrong. I had accidentally used version (Ddoc) instead of version (D_Ddoc).

Closing as invalid.