Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #18720
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: can't return value |
| Date | 2012-09-12 20:54 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <k3m258d21dv8ot4d3iu35rf6i674vm1iim@4ax.com> (permalink) |
| References | <k2pe2b$lp4$1@dont-email.me> |
On Wed, 12 Sep 2012 00:36:41 -0700, "bilsch" <king621@comcast.net> wrote, quoted or indirectly quoted someone who said : > there is no RETURN statemen you have to make sure there is a some sort of return on every possible way to exit. Look at both branches of your IF. Whether you leave early or fall out the bottom of the loop. Make sure there is no way you can even theoretically exit without a value. -- Roedy Green Canadian Mind Products http://mindprod.com A new scientific truth does not triumph by convincing its opponents and making them see the light, but rather because its opponents eventually die, and a new generation grows up that is familiar with it. ~ Max Planck 1858-04-23 1947-10-04
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
can't return value "bilsch" <king621@comcast.net> - 2012-09-12 00:36 -0700
Re: can't return value Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-09-12 07:11 -0400
Re: can't return value bilsch <bilsch01@gmail.com> - 2012-09-12 22:15 -0700
Re: can't return value Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-09-13 08:53 -0400
Re: can't return value Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2012-09-12 15:32 +0300
Re: can't return value bilsch <bilsch01@gmail.com> - 2012-09-12 22:37 -0700
Re: can't return value Lew <lewbloch@gmail.com> - 2012-09-12 23:17 -0700
Re: can't return value markspace <-@.> - 2012-09-13 01:11 -0700
Re: can't return value Lew <lewbloch@gmail.com> - 2012-09-13 10:53 -0700
Re: can't return value Stuart <DerTopper@web.de> - 2012-09-13 09:45 +0200
Re: can't return value "bilsch" <king621@comcast.net> - 2012-09-13 03:55 -0700
Re: can't return value Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2012-09-13 15:06 +0300
Re: can't return value Stuart <DerTopper@web.de> - 2012-09-13 20:53 +0200
Re: can't return value Roedy Green <see_website@mindprod.com.invalid> - 2012-09-12 20:54 -0700
csiph-web