home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / programm / 7027 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.3 KB  |  37 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!mcsun!sunic!sics.se!eua.ericsson.se!euas67c28!etxabju
  3. From: etxabju@eua.ericsson.se (Anders Bjurman)
  4. Subject: C++ and Database Manager
  5. Message-ID: <1992Dec15.075914.4144@eua.ericsson.se>
  6. Sender: news@eua.ericsson.se
  7. Nntp-Posting-Host: euas67c28.eua.ericsson.se
  8. Reply-To: etxabju@eua.ericsson.se
  9. Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
  10. Date: Tue, 15 Dec 1992 07:59:14 GMT
  11. Lines: 24
  12.  
  13. How will IBM Extended Services Database Manager work together with C++ ?
  14.  
  15. The problem as I can see it are the statements
  16.  
  17. EXEC SQL WHENEVER SQL ERROR GOTO sql_error; etc.
  18.  
  19. i.e. a forward goto in a function. The C++ implementations I have looked 
  20. on (in Unix) can't handle gotos that well, since destructors for locals
  21. may not be executed when they go out of scope.
  22.  
  23. Is it possible to use C++ exceptions instead, i.e.
  24.  
  25. EXEC SQL WHENEVER SQL ERROR throw sql_error; (or something like that) ?
  26.  
  27. Regards Anders Bjurman
  28.  
  29. ---
  30.              __________________________________________________________
  31.  `"""'     _/  RF Anders Bjurman,              Memo: eri.etx.etxabju   \_
  32.   O O   __/    Ericsson Telecom AB             Anders.Bjurman@eua.se     \
  33.    >  _/       S-125 25 Alvsjo, Sweden         +46 8 727 49 80          _/
  34.    o   \_______________________________________________________________/
  35.  
  36.  
  37.