home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12764 < prev    next >
Encoding:
Text File  |  1992-08-22  |  1.5 KB  |  30 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!usc!sdd.hp.com!mips!mips!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
  3. From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
  4. Subject: Re: C++ 3.0 and exceptions
  5. Message-ID: <1992Aug22.163022.5887@ucc.su.OZ.AU>
  6. Sender: news@ucc.su.OZ.AU
  7. Nntp-Posting-Host: extro.ucc.su.oz.au
  8. Organization: MAXTAL P/L C/- University Computing Centre, Sydney
  9. References: <MATTHEW.92Aug19105738@matthew.ntl02.decnet.nokia.fi> <1992Aug21.011112.17870@ucc.su.OZ.AU> <1992Aug20.224432.21822@jarvis.csri.toronto.edu>
  10. Date: Sat, 22 Aug 1992 16:30:22 GMT
  11. Lines: 17
  12.  
  13. In article <1992Aug20.224432.21822@jarvis.csri.toronto.edu> mendell@turing.toronto.edu (Mark Mendell) writes:
  14. >IBM's xlC C++ compiler for the RS/6000 has been supporting C++ exception
  15. >handling since May.  It isn't all that hard to do (harder if you have to
  16. >generate C), and can be done without full runtime type information.  The
  17. >compiler always knows the types being thrown and caught at compile time.
  18.  
  19.     How does the compiler know that? I am baffled.
  20. If I have some catch statments, call a routine in a try block,
  21. and that routine is separately compiled, it could literally
  22. throw ANY object. Thats why RTTI is required I thought.
  23. Can someone correct me?
  24.  
  25. -- 
  26. ;----------------------------------------------------------------------
  27.         JOHN (MAX) SKALLER,         maxtal@extro.ucc.su.oz.au
  28.     Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
  29. ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
  30.