home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!mcsun!sunic!sics.se!eua.ericsson.se!euas67c28!etxabju
- From: etxabju@eua.ericsson.se (Anders Bjurman)
- Subject: C++ and Database Manager
- Message-ID: <1992Dec15.075914.4144@eua.ericsson.se>
- Sender: news@eua.ericsson.se
- Nntp-Posting-Host: euas67c28.eua.ericsson.se
- Reply-To: etxabju@eua.ericsson.se
- Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
- Date: Tue, 15 Dec 1992 07:59:14 GMT
- Lines: 24
-
- How will IBM Extended Services Database Manager work together with C++ ?
-
- The problem as I can see it are the statements
-
- EXEC SQL WHENEVER SQL ERROR GOTO sql_error; etc.
-
- i.e. a forward goto in a function. The C++ implementations I have looked
- on (in Unix) can't handle gotos that well, since destructors for locals
- may not be executed when they go out of scope.
-
- Is it possible to use C++ exceptions instead, i.e.
-
- EXEC SQL WHENEVER SQL ERROR throw sql_error; (or something like that) ?
-
- Regards Anders Bjurman
-
- ---
- __________________________________________________________
- `"""' _/ RF Anders Bjurman, Memo: eri.etx.etxabju \_
- O O __/ Ericsson Telecom AB Anders.Bjurman@eua.se \
- > _/ S-125 25 Alvsjo, Sweden +46 8 727 49 80 _/
- o \_______________________________________________________________/
-
-
-