[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(\ x 0) revisited, revisited
- To: jonl at PARC-MAXC
- Subject: (\ x 0) revisited, revisited
- From: Glenn S. Burke <GSB at MIT-ML>
- Date: Sun, 19 Dec 82 22:48:00 GMT
- Cc: BUG-lisp at MIT-MC
- Original-date: 19 December 1982 17:48-EST
that's remainder, not division. Division should be an error. Remainder,
however, should at least be compatible with what the interpreter does
(it shares code with the generic remainder, which performs the special
0 divisor check and returns x). Getting x back for division by 0 is an
error in the program (division by 0) [at least in the maclisp world],
getting 0 (or something random) back for remainder by 0 is a bug, unless
we claim that it is an error, and then fix (break?) the generic remainder
function.