home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / usr.bin / lisp / lispnews / text0154.txt < prev    next >
Encoding:
Text File  |  1985-11-10  |  843 b   |  22 lines

  1.   The 'error' function used to print its arguments and then call 'err' to
  2. cause the familar 'call to err' error.  The problem with this is that
  3. even if you wrap your compuatation with (errset ... nil), the error message
  4. will still be printed.   In opus 38.77, this problem has been fixed.
  5.  
  6. A new function was added:
  7.     (err-with-message 'st_message ['g_value])
  8.  This causes an error to be signaled with the given message.   The message
  9. will only be printed if an '(errset ... nil)' isn't being executed.
  10. Normally nil is returned from an errset if an error occured.  If you provide
  11. g_value, then it will be returned from the errset.
  12. [Not surprisingly, 'error' now uses 'err-with-message']
  13.  
  14.  
  15. Also, 'error' now takes any number of arguments.  In concatenates them,
  16. separated by spaces, and this is the error message passed to
  17. err-with-message.
  18.  
  19.  
  20.  
  21.  
  22.