home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 18858 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.1 KB  |  35 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!psinntp!cadkey!erics
  3. From: erics@cadkey.cadkey.com (Eric Smith)
  4. Subject: setjmp/longjmp question
  5. Message-ID: <1993Jan8.195613.14303@cadkey.com>
  6. Sender: erics@cadkey.com (Eric Smith)
  7. Organization: cadkey
  8. Date: Fri, 8 Jan 1993 19:56:13 GMT
  9. Lines: 24
  10.  
  11.  
  12. In <setjmp.h>, Microsoft C has a #ifndef to comment out the entire
  13. contents of the file if compiling a C++ program.  Other compilers I
  14. use (Borland, ObjectCenter, and one other cfront implementation) allow
  15. setjmp/longjmp even from a C++ program.
  16.  
  17. I realize the problems with stack unwinding and object destruction,
  18. but why doesn't Microsoft let me use these?  It is kind of a problem
  19. when I am porting a straight C program to C++ just to get some
  20. additional type checking.
  21.  
  22. I could find no mention of this in the ARM.
  23.  
  24. Does anyone know of any other C++ compiler that doesn't allow setjmp?
  25.  
  26. Thanks.
  27.  
  28. Eric.
  29.  
  30. -- 
  31. Eric V. Smith         | Technology ... the knack of arranging the
  32. Cadkey, Inc.          |   world so that we need not experience it.
  33. Windsor, CT           |
  34. erics@cadkey.com      |     - Max Frisch
  35.