emacs-devel
[Top][All Lists]
Advanced

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

Re: Using the GNU GMP Library for Bignums in Emacs


From: Helmut Eller
Subject: Re: Using the GNU GMP Library for Bignums in Emacs
Date: Tue, 10 Jul 2018 07:32:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

On Mon, Jul 09 2018, Stefan Monnier wrote:

> In general, we'd want type-of to return the "most precise" type, so
> you could argue that `natnum` is the better option.  Note that `natnum`
> is not a valid type in CommonLisp, tho, so `fixnum` would probably be
> a better option (especially if you want to consider positive bignums as
> natnums, in which case natnum is not a subtype of fixnum).

The most precise type for 5 would be (eql 5) or (integer 5 5).  But I
guess for generic function dispatch it would more useful to have
something like a "representation type".  Or even "type codes" that are
ordered in some fashion.

Helmut




reply via email to

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