home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!psinntp!gatekeeper.nsc.com!voder!genie!roger
- From: roger@genie.UUCP (Roger H. Scott)
- Newsgroups: comp.lang.c++
- Subject: Re: "type safety" deemed essential
- Message-ID: <448@genie.UUCP>
- Date: 20 Dec 92 17:49:42 GMT
- References: <1992Dec13.141400.5307@mole-end.matawan.nj.us> <1992Dec14.212143.15591@leland.Stanford.EDU> <rmartin.724430168@thor>
- Reply-To: roger@genie.UUCP (Roger H. Scott)
- Organization: proCASE Corporation, Santa Clara, CA
- Lines: 18
-
- In article <rmartin.724430168@thor> rmartin@thor.Rational.COM (Bob Martin) writes:
- >kocks@leland.Stanford.EDU (Peter Kocks) writes:
- >
- >>My $0.02. Use Obj-C. I have just spent a fair amount of time
- >>comparing strong vs weak type casting systems [...]
- >
- >For any significant industrial application, I think strong typing is
- >utterly essential. It is just too easy to create horrible run time
- >errors without type safety.
-
- This sounds like theory rather than practice speaking. Let's hear from the
- (net) C++ user community: who has written a non-trivial commercial C++
- application *without* making significant use of either type casting [(T *)]
- or run-time type checking [Bar *bar_p = foo_p->asBar();]? I maintain that
- C++ makes it *very* difficult to do without at least one or the other of these
- (Eiffel-style "anchored" virtual function return types would go a long way to
- alleviate this). I'm hoping that templates will help in this regard, but they
- haven't been available long enough to judge.
-