home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!psinntp!cadkey!erics
- From: erics@cadkey.cadkey.com (Eric Smith)
- Subject: setjmp/longjmp question
- Message-ID: <1993Jan8.195613.14303@cadkey.com>
- Sender: erics@cadkey.com (Eric Smith)
- Organization: cadkey
- Date: Fri, 8 Jan 1993 19:56:13 GMT
- Lines: 24
-
-
- In <setjmp.h>, Microsoft C has a #ifndef to comment out the entire
- contents of the file if compiling a C++ program. Other compilers I
- use (Borland, ObjectCenter, and one other cfront implementation) allow
- setjmp/longjmp even from a C++ program.
-
- I realize the problems with stack unwinding and object destruction,
- but why doesn't Microsoft let me use these? It is kind of a problem
- when I am porting a straight C program to C++ just to get some
- additional type checking.
-
- I could find no mention of this in the ARM.
-
- Does anyone know of any other C++ compiler that doesn't allow setjmp?
-
- Thanks.
-
- Eric.
-
- --
- Eric V. Smith | Technology ... the knack of arranging the
- Cadkey, Inc. | world so that we need not experience it.
- Windsor, CT |
- erics@cadkey.com | - Max Frisch
-