[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making 'eq' == 'eql' in bignum branch

From: Richard Stallman
Subject: Re: Making 'eq' == 'eql' in bignum branch
Date: Mon, 20 Aug 2018 23:38:44 -0400

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > I'm pretty sure that I've written code that's essentially along the
  > lines of

  > (when list-of-numbers
  >   (let ((i most-positive-fixnum))
  >     (dolist (a list-of-numbers)
  >       (setq i (min i a)))
  >     i))

  > to get the smallest number in a set.

This seems to be a real problem.

I wonder -- do most of these instances involve binding
a variable to most-positive-fixnum?  If so, that could be a
way to warn about cases that are likely to be wrong, while
skipping other cases.

How many problem cases is this likely to miss?

Dr Richard Stallman
President, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]