www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - "(" and ")" cause problems in ddoc comments

reply BCS <BCS pathlink.com> writes:
Stray, unnested parentheses can cause odd effects in ddoc comments. This 
can be fixed by using &#40; and &#41; but this is a bit clunky. What 
would be nice would be to have a special character sequence to handle 
them, something like &lp; and &rp;
Aug 11 2006
parent Walter Bright <newshound digitalmars.com> writes:
BCS wrote:
 Stray, unnested parentheses can cause odd effects in ddoc comments. This 
 can be fixed by using &#40; and &#41; but this is a bit clunky. What 
 would be nice would be to have a special character sequence to handle 
 them, something like &lp; and &rp;

I use a macro: Macros: LPAREN = ( RPAREN = ) and use like: $(LPAREN) $(RPAREN)
Aug 11 2006