On Nov 20, 10:23 am, "Mark H." <[EMAIL PROTECTED]> wrote:

> I can't speak from Rich but I've noticed this behavior in other Lisp
> implementations (like SBCL) that are built on C.  The Lisp
> implementation changes the semantics of floating-point divide-by-
> zero.  (The ANSI Common Lisp standard defines the DIVISION-BY-ZERO
> condition -- 
> seehttp://www.lispworks.com/documentation/HyperSpec/Body/e_divisi.htm#di...
> -- but I can't tell whether it _requires_ that floating-point 1.0/0.0,
> for example, signal a condition or just return Inf.)

Bit off topic here, but there is no standard common lisp semantics for
divide by zero:

"Exceptional Situations:

The consequences are unspecified if any argument other than the first
is zero. If there is only one argument, the consequences are
unspecified if it is zero.

Might signal type-error if some argument is not a number. Might signal
division-by-zero if division by zero is attempted. Might signal
arithmetic-error."


from:  <http://www.lispworks.com/documentation/HyperSpec/Body/
f_sl.htm>

IOW, implementations are free to signal a division-by-zero condition,
but are not required to.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to