March 09, 2006
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 :)

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocracy!"
9/03/2006 1:04:07 PM
March 12, 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