[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Common Lisp solved this problem 20 years ago
Marcin 'Qrczak' Kowalczyk wrote:
Declaring types of identifiers is not enough, because it can't express
the wish to ignore any fixnum overflow and assume that the result will
fit in a fixnum.
Indeed, the current SRFI does not adequately distinguish between the
following two cases:
(a) addition in which the operands are fixnums and the result is
guaranteed to be a fixnum (or should be wrapped to a fixnum's range).
(b) addition in which the operands are fixnums and the result is not
guaranteed to be a fixnum (and should not be wrapped to a fixnum's range).
Dr Alan Watson
Centro de Radioastronomía y Astrofísica
Universidad Astronómico Nacional de México