Hello A.M.,
and PLEASE put some reference/documentation for dmd2, I don't want to use dmd1 and dmd2 doesn't have resources to learn from.
http://www.digitalmars.com/d/2.0/lex.html http://www.digitalmars.com/d/2.0/phobos/phobos.html If that is not what you are looking for, please elaborate.