Curt,
Why do you say you aren't going to execute the return statement?

As I read the code, the "return author" statement WILL execute after the
finally block completes.

The only way I can see that the return statement wouldn't get executed
is if you had a catch block, and rethrew the exception (but that does
not appear to be what you are doing.)  If you do intend to do that, then
you probably would want to put the return statement inside of the Try
block.

HTH

Larry

-----Original Message-----
From: Curtis Koppang [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 19, 2002 8:10 AM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Use of unassigned local variable


I guess it's too much to ask for the compiler to figure this out.

Here is what I mean.  If I get an exception on a line in the try block,
the only code I am executing is the code in the finally block.  I am not
going to execute the return, so why do I care if it has a valid value or
not.

Later,
curt

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to