Re: Absolute
- Posted by Kat <gertie at PELL.NET> Jun 11, 2000
- 545 views
On 11 Jun 2000, at 2:36, Lucius L. Hilley III wrote: > > Or 2x? Or any other equation that will make x bigger than x already > > is? Obviously the program will crash. Are there methods commonly > > used to avoid this happening if it is possibly likely (e.g if > > x>too_big then approximate(x) and inform) or do we just hope it > > doesn't happen? > > Euphoria doesn't have error trapping. For those that don't know what > that is. Error trapping is when an error occurs and the program is > written to try and handle the error as gracefully as possible. > Example: > Dave: Add 1 to x > Hal: I'm sorry, I can't allow you to do that, Dave. Which, in some models, would be an error on your part, Hal. largest_atom + 1 = +inf +inf + 1 = -inf -inf + 1 = -inf + 1 Kat