www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - ddoc patterns


In D stdlib's ddoc the idiom "$(D some d code) is constantly used. But it does 
not work by me. Not only it's not interpreted, but the contents are stripped 
out all together. (A *very* big bug of ddoc.)
First, I'd like to know why.
Second, there is another pattern $(D_CODE some d code), but it place the code 
on a separate block. Is this intended?
Third, http://www.digitalmars.com/d/2.0/ddoc.html seems to imply one can define 
new patterns. How to do that? I tried following the example, but my code ends 
up interpreted and stripped out.

vita es estrany
Apr 07 2011