[Top][All Lists]

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

Re: evaluating numbers

From: Eli Zaretskii
Subject: Re: evaluating numbers
Date: Tue, 28 Apr 2020 18:05:09 +0300

> From: Jean-Christophe Helary <address@hidden>
> Date: Tue, 28 Apr 2020 23:52:48 +0900
> > 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 ?

If you are asking why this happened historically, then I don't know: I
wasn't there.  Maybe Richard can answer that.

reply via email to

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