Path: utzoo!mnetor!uunet!husc6!hao!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!oberon!pollux.usc.edu!papa From: papa@pollux.usc.edu (Marco Papa) Newsgroups: comp.sys.amiga Subject: Re: DeciGel (was Re: UNIX on the Amiga) Message-ID: <7457@oberon.USC.EDU> Date: 7 Mar 88 07:00:13 GMT References: <6836@agate.BERKELEY.EDU> <1869@leo.UUCP> <2836@bloom-beacon.MIT.EDU> <7433@oberon.USC.EDU> <740@nuchat.UUCP> Sender: news@oberon.USC.EDU Reply-To: papa@pollux.usc.edu (Marco Papa) Organization: Felsina Software, Los Angeles, CA Lines: 30 In article <740@nuchat.UUCP> peter@nuchat.UUCP (Peter da Silva) writes: >In article <7433@oberon.USC.EDU>, papa@pollux.usc.edu (Marco Papa) writes: >> In article <731@nuchat.UUCP> peter@nuchat.UUCP (Peter da Silva) writes: >> >Is there a DeciGel-like program to trap and ignore divide-by-zero errors? > ^^^^^^^^^^ >> Get GOMF. > >I have GOMF version 1.0. It only saves me a small fraction of the time. And >it doesn't satisfy the second part of my request. A divide-by-zero should >only cause a program to trap out if that program's runtime has explicitly >requested it. The default behavior should be to silently replace it with >an infinity. Numerical Analysis weenies can trap it and do the right thing. >The rest of us don't care. Let's see if the second time it works :-) GET MANX 3.60a. 3.60a includes a UNIX-like signal call that can trap the following: divide by zero and overflow (SIGFPE) illegal instruction (SIGILL) illegal address or bus error (SIGSEGV) As under UNIX one can trap and jump to a function, or terminate the program (SIG_DFL) or ignore the trap (SIG_IGN). The function can execute exit(), longjump(), or return. The last case will resume the program at the point of interrumption. Does this suit you? -- Marco