Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #25488
| Path | csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!goblin3!goblin.stu.neva.ru!exi-transit.telstra.net!pit-in1.telstra.net!news.telstra.net!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail |
|---|---|
| From | Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Java vs C++ |
| Followup-To | comp.lang.java.programmer |
| Date | Mon, 07 Feb 2011 15:02:17 +1300 |
| Organization | Geek Central |
| Lines | 16 |
| Message-ID | <iinjr9$7j3$10@lust.ihug.co.nz> (permalink) |
| References | <iijbfr$pb2$1@lust.ihug.co.nz> <4d4d585c$0$81476$e4fe514c@news.xs4all.nl> <4d4d60dc$0$23763$14726298@news.sunsite.dk> <4d4d8322$0$41117$e4fe514c@news.xs4all.nl> <iil53i$q34$1@lust.ihug.co.nz> <iil5ed$10m$1@news.eternal-september.org> <iil74u$rac$1@lust.ihug.co.nz> <4d4f042b$0$23753$14726298@news.sunsite.dk> <iincuv$ot9$1@news.belwue.de> <iineik$3tp$10@lust.ihug.co.nz> <iinft1$95e$1@speranza.aioe.org> |
| NNTP-Posting-Host | 118-92-86-70.dsl.dyn.ihug.co.nz |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| X-Trace | lust.ihug.co.nz 1297044138 7779 118.92.86.70 (7 Feb 2011 02:02:18 GMT) |
| X-Complaints-To | abuse@ihug.co.nz |
| NNTP-Posting-Date | Mon, 7 Feb 2011 02:02:18 +0000 (UTC) |
| User-Agent | KNode/4.4.7 |
| Xref | csiph.com comp.lang.java.programmer:25488 |
Followups directed to: comp.lang.java.programmer
Show key headers only | View raw
In message <iinft1$95e$1@speranza.aioe.org>, javax.swing.JSnarker wrote: > On 06/02/2011 7:32 PM, Lawrence D'Oliveiro wrote: > >> In message<iincuv$ot9$1@news.belwue.de>, Thomas Richter wrote: >> >>> There is no "ClassCastException" in C++. >> >> Yes there is. It’s called “bad_cast”. Where do you think Java got the >> idea from? > > dynamic_cast<foo>(bar) can throw this if bar is not really a foo. But > C++ lets you use the unsafe old (foo)bar cast from C, and if bar is not > really a foo, welcome to undefined behaviorville. The fact remains, there IS an equivalent to ClassCastException in C++.
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar
Re: Java vs C++ Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-07 15:02 +1300 Re: Java vs C++ Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-08 16:15 +1300 Re: Java vs C++ Thomas Richter <thor@math.tu-berlin.de> - 2011-02-07 14:57 +0100
csiph-web