Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #25256
| Date | 2013-09-08 13:24 +0100 |
|---|---|
| From | lipska the kat <"nospam at neversurrender dot co dot uk"> |
| Organization | Trollbusters 3 |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Primitive return value after exception in method |
| References | (4 earlier) <b8iprdF1jeuU1@mid.individual.net> <vYednTuW3dzzrLHPnZ2dnUVZ8iCdnZ2d@bt.com> <b9323fFdmfaU1@mid.individual.net> <7PidnXF_D8rn_7HPnZ2dnUVZ8oidnZ2d@bt.com> <b93832Fet98U1@mid.individual.net> |
| Message-ID | <K5-dnemo_7zn8bHPnZ2dnUVZ7oOdnZ2d@bt.com> (permalink) |
On 08/09/13 13:15, Robert Klemme wrote: > On 08.09.2013 13:41, lipska the kat wrote: >> On 08/09/13 11:33, Robert Klemme wrote: >>> On 08.09.2013 10:12, lipska the kat wrote: >>>> On 02/09/13 07:34, Robert Klemme wrote: >>> >>>>> One can pass values back to the caller in this situation even in >>>>> Java - >>>>> albeit not via return value. All you need to do is to pass an object >>>>> reference into the method and modify the state of that object before >>>>> you >>>>> throw the exception. >>> >>>> I've just read this thread and frankly I'm surprised that apparently >>>> experienced developers are apparently suggesting that this sort of >>>> thing >>>> is even attempted. >>> >>> Where do you see that? >> >> Where do I see what? > > That "experienced developers are apparently suggesting that this sort of > thing is even attempted". > > We're discussing language behavior in this thread. I do not see that > someone is seriously suggesting to actually do that and return values > even in case of an exception. That's why I asked. How is this 'language behavior'? ... Anyway, people *have* been suggesting ways of setting a value via a reference that can later (presumably) be inspected (presumably to infer something) *after* an exception has occurred. Does nothing about this activity seem unsafe to you? lipska -- Lipska the Kat©: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun GNU/Linux user #560883 - http://www.linuxcounter.net
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Primitive return value after exception in method Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2013-09-01 14:30 +0800
Re: Primitive return value after exception in method Marcel Müller <news.5.maazl@spamgourmet.org> - 2013-09-01 09:23 +0200
Re: Primitive return value after exception in method Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2013-09-01 15:38 +0800
Re: Primitive return value after exception in method Arne Vajhøj <arne@vajhoej.dk> - 2013-09-01 11:49 -0400
Re: Primitive return value after exception in method Marcel Müller <news.5.maazl@spamgourmet.org> - 2013-09-01 19:05 +0200
Re: Primitive return value after exception in method Robert Klemme <shortcutter@googlemail.com> - 2013-09-02 08:34 +0200
Re: Primitive return value after exception in method Arne Vajhøj <arne@vajhoej.dk> - 2013-09-02 22:18 -0400
Re: Primitive return value after exception in method lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-09-08 09:12 +0100
Re: Primitive return value after exception in method Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2013-09-08 17:16 +0800
Re: Primitive return value after exception in method lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-09-08 12:39 +0100
Re: Primitive return value after exception in method Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2013-09-08 19:49 +0800
Re: Primitive return value after exception in method lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-09-08 12:59 +0100
Re: Primitive return value after exception in method Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2013-09-08 20:13 +0800
Re: Primitive return value after exception in method lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-09-08 13:15 +0100
Re: Primitive return value after exception in method Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2013-09-08 20:20 +0800
Re: Primitive return value after exception in method lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-09-08 13:27 +0100
Re: Primitive return value after exception in method Robert Klemme <shortcutter@googlemail.com> - 2013-09-08 12:33 +0200
Re: Primitive return value after exception in method lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-09-08 12:41 +0100
Re: Primitive return value after exception in method Robert Klemme <shortcutter@googlemail.com> - 2013-09-08 14:15 +0200
Re: Primitive return value after exception in method lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-09-08 13:24 +0100
Re: Primitive return value after exception in method Patricia Shanahan <pats@acm.org> - 2013-09-01 13:57 -0700
csiph-web