[Top][All Lists]

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

Re: evaluating numbers

From: Paul Eggert
Subject: Re: evaluating numbers
Date: Tue, 28 Apr 2020 10:28:15 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

>> From: Jean-Christophe Helary <address@hidden>
>> Date: Tue, 28 Apr 2020 23:52:48 +0900

>> 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 ?

Surely not. Maclisp (which predates C) also represented characters as fixnums:
Maclisp #/x was equivalent to Emacs Lisp ?x. So the heritage runs through
Cambridge, not through Murray Hill.

Disclaimer: I never used Maclisp (I jumped straight from Lisp 1.5 to Emacs Lisp
and Scheme) and of course Richard is the authority here.

reply via email to

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