Re: Subtle bug in ddox vs. ddoc macro handling

2016-09-17 Thread Andrei Alexandrescu via Digitalmars-d
On 9/17/16 5:29 AM, Walter Bright wrote: On 9/16/2016 11:53 PM, Sönke Ludwig wrote: There is indeed a separate macro engine [1] contained in the ddox repo. Neither DDMD, nor libddoc existed at the time and DMD's implementation was written in, from a D POV, very alien C style, with no suitable st

Re: Subtle bug in ddox vs. ddoc macro handling

2016-09-17 Thread Andrei Alexandrescu via Digitalmars-d
On 9/17/16 2:53 AM, Sönke Ludwig wrote: There is indeed a separate macro engine [1] contained in the ddox repo. Neither DDMD, nor libddoc existed at the time and DMD's implementation was written in, from a D POV, very alien C style, with no suitable structure to extract high level information, so

Re: Subtle bug in ddox vs. ddoc macro handling

2016-09-17 Thread Walter Bright via Digitalmars-d
On 9/16/2016 11:53 PM, Sönke Ludwig wrote: There is indeed a separate macro engine [1] contained in the ddox repo. Neither DDMD, nor libddoc existed at the time and DMD's implementation was written in, from a D POV, very alien C style, with no suitable structure to extract high level information,

Re: Subtle bug in ddox vs. ddoc macro handling

2016-09-16 Thread Sönke Ludwig via Digitalmars-d
There is indeed a separate macro engine [1] contained in the ddox repo. Neither DDMD, nor libddoc existed at the time and DMD's implementation was written in, from a D POV, very alien C style, with no suitable structure to extract high level information, so instead of porting it, I instead trie

Re: Subtle bug in ddox vs. ddoc macro handling

2016-09-16 Thread Andrei Alexandrescu via Digitalmars-d
On 09/16/2016 03:11 PM, Stefan Koch wrote: I belive ddox is maintained by soenke ludwig Thx, he's cc'd. Workaround for the time being: https://github.com/dlang/dlang.org/pull/1475, could someone please review. Thanks! Andrei

Re: Subtle bug in ddox vs. ddoc macro handling

2016-09-16 Thread Stefan Koch via Digitalmars-d
On Friday, 16 September 2016 at 18:40:03 UTC, Andrei Alexandrescu wrote: So, I've spent the better part of this morning tracing what seems to be a subtle bug in ddox' macro treatment. I defined these macros: IGNORESECOND = [$1] DOLLARZERO = dzbegin $0 dzend TEST = before $(IGNORESECOND $(DOLLA

Subtle bug in ddox vs. ddoc macro handling

2016-09-16 Thread Andrei Alexandrescu via Digitalmars-d
So, I've spent the better part of this morning tracing what seems to be a subtle bug in ddox' macro treatment. I defined these macros: IGNORESECOND = [$1] DOLLARZERO = dzbegin $0 dzend TEST = before $(IGNORESECOND $(DOLLARZERO one, two)) after I inserted $(TEST) in a Phobos module. When process