Usage of Exceptions in std.xml

Rene Zwanenburg renezwanenburg at gmail.com
Mon Apr 16 13:32:09 PDT 2012


On Sunday, 15 April 2012 at 15:31:52 UTC, Jesse Phillips wrote:
> On Sunday, 15 April 2012 at 14:43:37 UTC, Rene Zwanenburg wrote:
>> I'm not sure, but it appears that std.xml uses exceptions for 
>> control flow. I use VisualD for development, and Visual Studio 
>> has been configured to break on exceptions. This means that 
>> every time a new DocumentParser is created with valid XML, the 
>> debugger explodes because of the thrown exceptions.
>>
>> Am I doing something wrong, or shall I create a change request?
>
> The std.xml module will be getting replaced. So I can't really 
> recommend making a change request, if this is the case.
>
> Possible alternative:
>
> https://code.launchpad.net/d2-xml

Thanks. I've been trying to get D2-XML to compile for a few hours 
now without much luck, so that one is out. Does anyone know 
another good replacement?

Also, why replace std.xml? As far as I can tell it works fine, 
except for the thrown exceptions.


More information about the Digitalmars-d mailing list