[Issue 13211] Expand macros in comments within code sections

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 27 07:19:17 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13211

Alix Pexton <alix.pexton at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86_64                      |All
                 OS|Windows                     |All

--- Comment #1 from Alix Pexton <alix.pexton at gmail.com> ---
I think this is related to the case where macros inside string literals in code
sections are not expanded (bug:12383).

Code in a code section that compiles when copy/pasted as-is can have macros
that are not expanded when documentation is generated.

Code in a code section that contains macros that are expanded when
documentation is generated won't compile if just copy/pasted as-is.

I'm starting to think that macros in code sections should be discouraged.

--


More information about the Digitalmars-d-bugs mailing list