home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH07 / A07133.TXT < prev    next >
Encoding:
Text File  |  1993-11-23  |  486 b   |  9 lines

  1. In compilers that conform to the ANSI C++ WORKING PAPER, the new
  2. operator will not return zero if the requested memory cannot be
  3. allocated.  Instead an exception will occur.  The effect of the
  4. exception is to transfer control to an exception handler.  The
  5. code you see here may replace the two lines of code above.
  6. The call of the new operator is in the block of code beginning
  7. with the keyword try.  The exception handler is the block of
  8. code beginning with the keyword catch.
  9.