emacs-devel
[Top][All Lists]
Advanced

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

Re: documentation of integers, fixnums and bignums


From: Paul Eggert
Subject: Re: documentation of integers, fixnums and bignums
Date: Sat, 8 Sep 2018 13:15:54 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Stefan Monnier wrote:
encode-char could potentially return a value that cannot be
represented as a fixnum.
Can this still happen?  When?

When INDEX_TO_CODE_POINT returns a code point greater than most-positive-fixnum, which can happen (in theory, at least) on 32-bit platforms. Formerly, such a code point caused Emacs to return a negative fixnum or junk, depending on the code point. Now it causes Emacs to return an integer with the proper value.

I don't know of any charsets that actually do that. Possibly Emacs should simply report an error if it runs across one, as that would simplify the code point processing internals.



reply via email to

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