posted 20 years ago
Like Ashok said, the compiler ain't the brightest bear in the forest. It's like the classic debugging statement:
Should the compiler freak out if there are lines below there in the function? Yes. Will it? Sadly, no.
Moral of the story: just put in your returns. It makes your code more readable anyways. Who wants to stare as some code a year later and wonder why there's suddenly no return statement where there should be, or for that matter why there's a catch block that will never execute!
Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED