"if sting in string"

John Colvin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Sep 18 04:18:31 PDT 2015


On Friday, 18 September 2015 at 09:42:05 UTC, smadus wrote:
> Ok i have rewrite :)
>
> Now:
> http://dpaste.dzfl.pl/cf8bb54b1390
>
> The Problem is:
>
> http://www.directupload.net/file/d/4114/9zryku49_png.htm
>
> but i dont understand this, because, the exception should be 
> "Something wrong" ?!?
>
> But, thanks for the answers, realy good and the code has been 
> smaller.

There are two other points where an Exception could be thrown: 
during the construction of dirEntries and on every iteration of 
it.

See http://dpaste.dzfl.pl/d38307643f9b for a corrected version. 
It's not pretty

I think this has shown up a design flaw in dirEntries, this 
should be much easier.


More information about the Digitalmars-d-learn mailing list