[Top][All Lists]

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

Re: evaluating numbers

From: Jean-Christophe Helary
Subject: Re: evaluating numbers
Date: Tue, 28 Apr 2020 23:52:48 +0900

> On Nov 15, 2019, at 22:03, Eli Zaretskii <address@hidden> wrote:
>> From: Jean-Christophe Helary <address@hidden>
>> Date: Fri, 15 Nov 2019 19:36:21 +0900
>> Whatever I read about characters starts with the statement "Characters are 
>> integers" or a differently worded equivalent.
>> There is nothing that says why or how.
> The answer to "why" is "because that's how characters are
> implemented".  The answer to "how" is "by interpreting the integer as
> character when the context requires that".

I'm sorry to get back to this now, but I'm reading an introduction to C in 
French where I found:

"Une des particularités du type char en C est qu’il peut être assimilé à un 
entier: tout objet de type char peut être utilisé dans une expression qui 
utilise des objets de type entier. Par exemple, si c est de type char, 
l’expression c + 1 est valide."

Is that the reason why characters are integers in emacs lisp too ?

Jean-Christophe Helary
http://mac4translators.blogspot.com @brandelune

reply via email to

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