Verified documentation comments

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Nov 15 11:15:15 PST 2012


On 11/15/12, bearophile <bearophileHUGS at lycos.com> wrote:
> Currently in D if you have a documentation comment like this it
> generates no warnings or notes

So you open dlang.org, hit the edit button, and fix it. Doing
semantics in comments is beyond overkill.

And soon enough we won't have to use "---"-style comments for code
snippets anymore because the compiler will auto-insert the code from
the next ddoc'ed unittests as ddoc'ed code samples (there is a pull
ready but it requires a review, and perhaps a rewrite since the
implementation is cheating a little bit).


More information about the Digitalmars-d mailing list