Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!portal!sv!daven From: daven@svc.portal.com Newsgroups: comp.sys.mac.programmer Subject: Re: TRAP BUG? In SetGrowZone() Message-ID: <1990Dec7.224330.17972@svc.portal.com> Date: 7 Dec 90 22:43:30 GMT References: <1CE00001.66qcvx@tbomb.ice.com> Organization: Software Ventures Lines: 23 In article <1CE00001.66qcvx@tbomb.ice.com> time@tbomb.ice.com writes: >I am implementing the trap call in Assembler, and Inside Mac Vol II >page 42 clearly states that d0 returns a result code. However, I did >not make the logical leap to see that the Pascal call (shown just >above the assembler comment :) was a procedure. > >I starting trapping applications, and all of them ignored the return >code. This is when I realized the answer that you gave. Gotta take >that bible with a grain of salt some times. Tim, I kind of suspected you were working in assembler. I noticed the assembler info mentioned D0 holding the error result and it made me wonder. I suspect just about everyone who's been through IM more than once keeps a saltshaker handy. :) -- ------------------------------------------------------------------------------- Dave Newman - Sofware Ventures | daven@svc.portal.com | AppleLink: D0025 Berkeley, CA (415) 644-3232 | AOL: MicroPhone | CIS: 76004,2161 -------------------------------------------------------------------------------