try...catch slooowness?

spir denis.spir at gmail.com
Mon Dec 20 12:56:57 PST 2010


On Mon, 20 Dec 2010 12:29:29 -0500
"Steven Schveighoffer" <schveiguy at yahoo.com> wrote:

> This example is misleading.  First, catching an exception should be a rare  
> occurrence (literally, an exception to the rule).  You are testing the  
> case where catching an exception vastly outweighs the cases where an  
> exception is not thrown.  What I'm saying is, catching an exception is  
> very slow, but *trying* to catch an exception is not.

Right, understood, thank you.

Denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com



More information about the Digitalmars-d mailing list