The XML module in Phobos

zsxxsz zhengshuxin at hexun.com
Thu Jul 30 21:48:37 PDT 2009


== Quote from Daniel Keep (daniel.keep.lists at gmail.com)'s article

> This is basically the only way to map xml parsing to ranges.  As for
> CONSUMING ranges, I think that'd be a bad idea for the same reason
> basing IO entirely on ranges is a bad idea.
> The only other use for ranges I can think of is one already mentioned by
> Benji: traversal of a DOM.  Ranges don't apply to SAX because that's
> what pull parsing is. :D
I agree with it. Net IO maybe be blocked so often, then the program will
pause until there is some data arrived. And when I want to write a no-block
http server with one thread running, the range IO will also block it, the
other socket with data ready will also be blocked.



More information about the Digitalmars-d mailing list