"Richard M. Stallman" <[EMAIL PROTECTED]> writes:

> The comment suggests this was for compatibility with Common Lisp.
> We may as well not change it.

i changed `Fexpt' so that:

  (expt 2 -2) => 0.25

i'm inclined to leave the change in for (more) mathematical correctness,
and also because w/ the change, the behavior concords w/ the elisp info
page which says:

  @defun expt x y
  This function returns @var{x} raised to power @var{y}.  If both
  arguments are integers and @var{y} is positive, the result is an
  integer; in this case, overflow causes truncation, so watch out.
  @end defun

if someone complains, we can always revert it (and update the docs to
mention the (IMHO) strange behavior).

thi


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to