std2.xml and std2.encoding for D 1.0 available at D source

Michael Rynn michaelrynn at optushome.com.au
Tue Aug 11 23:03:00 PDT 2009


I have made a little beginning attempt at understanding the phobos xml
modules.  For a warm up exercise, I took the std.xml and std.encoding
from phobos 2, and made them into std2.xml and std2.encoding in the
DSource project std2, so the dmd 1.0 compiler took a tour tripping up
all over the code.

They are attached as files on the http://www.dsource.org/projects/std2
page.  

I cannot believe that anybody actually uses the std2 project files.

I  took away all the safety features of const, immutable and any other
things that dmd 1.0 complains about, as "recommended" for the std2.

Inserted a few support functions not immediately avalable in Phobos
1.0,  notably some  suggested better code  for the encode (xml entity)
, and renamed it as encodeStdEntity, from a Tango fan in the D bugs
postings.

Ran unit tests and also successfully rab the books.xml example.

Re-enabled the disabled unittest in std.encoding, and fixed the little
bug that was spoiling it, also posting that to the D bugs.

..





More information about the Digitalmars-d-announce mailing list