www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - DDoc bug with const assignment in static constructor

The following code will show this behavior:



















Run the command line "dmd -c -o- -D foo" and then open the resulting "foo.html"
file.  The 
error is in the listings for THREE, FOUR, and FIVE -- the constants whose
values were set 
from the module constructor.  They do not reveal the const attribute, whereas
ONE and TWO 
have theirs proudly displayed.

-- Chris Sauls
Dec 30 2005