DDOC tip - Comments

Victor Nakoryakov nail-mail at mail.ru
Sun Mar 12 10:27:53 PST 2006


Derek Parnell wrote:
> When writing a 'Ddoc' file, sometimes I've needed to place some comments
> into the file, and I don't mean HTML comments, but stuff which will not get
> generated at all. Anyhow, the way I've settled on is to code ...
> 
>  $(_ Some comment text and/or other macros eg. $(TITLE XYZZY) )
> 
> By using the non-existent macro "_", dmd just ignores everything to the
> next matching parenthesis.
> 
> Hope this is useful to someone else :)
> 

He, he... funny. I thought about comments in .ddoc files, but have got 
no idea. This is solution, thanx.

-- 
Victor (aka nail) Nakoryakov
nail-mail [at] mail.ru

Krasnoznamensk, Moscow, Russia



More information about the Digitalmars-d mailing list