home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / lisp / mcl / 1342 < prev    next >
Encoding:
Text File  |  1992-08-30  |  936 b   |  27 lines

  1. Newsgroups: comp.lang.lisp.mcl
  2. Path: sparky!uunet!ukma!wupost!zaphod.mps.ohio-state.edu!cs.utexas.edu!hellgate.utah.edu!hellgate!moore
  3. From: moore@cs.utah.edu (Tim Moore)
  4. Message-ID: <MOORE.92Aug30131851@defmacro.cs.utah.edu>
  5. Subject: trap return result wierdness
  6. Organization: University of Utah CS Dept
  7. Date: 30 Aug 92 13:18:51
  8. Lines: 17
  9.  
  10. I'm new to MCL and somewhat new to Macintosh programming, so bear with me.
  11.  
  12. I was surprised by this result:
  13. ? (%stack-block ((response 4)) (#_gestalt #$gestaltEasyAccessAttr
  14.                            response))
  15. 59985
  16.  
  17. I was expecting a negative error number. Do I need to somehow coerce
  18. the result of the trap into a negative word?
  19.  
  20. Also, is there higher level construct than %stack-block for allocating
  21. a word or longword of storage?
  22.  
  23. --
  24. Tim Moore                    moore@cs.utah.edu {bellcore,hplabs}!utah-cs!moore
  25. "Wind in my hair - Shifting and drifting - Mechanical music - Adrenaline surge"
  26.     - Rush
  27.