From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: evaluating numbers Date: Wed, 29 Apr 2020 08:16:47 +0900 Message-ID: <24FC7EFA-6A51-427F-ABE0-AE8A742E081B@traduction-libre.org> References: <875zjw2emg.fsf@gmx.net> <618B38D9-CD34-4200-8CA1-1A6B0922A83A@traduction-libre.org> <871ruk2d3f.fsf@gmx.net> <3C929D7B-1C10-4713-9EDA-55C80FC36AD8@traduction-libre.org> <835zjvg385.fsf@gnu.org> <83sgmyd6rw.fsf@gnu.org> <835zjucwbz.fsf@gnu.org> <628A3663-BDD3-47C5-B4F4-E260FD900691@traduction-libre.org> <83o8xla50f.fsf@gnu.org> <831rua95mg.fsf@gnu.org> <4801DEB3-937A-4777-8E99-C2CA2234F8A0@traduction-libre.org> <83eeya5yl6.fsf@gnu.org> <83imnl2sxk.fsf@gnu.org> <164231EC-D3B8-455C-8C11-AF033FB48699@traduction-libre.org> <83368n3b2y.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="53960"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 29 01:17:55 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jTZUB-000Dy3-HY for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Apr 2020 01:17:55 +0200 Original-Received: from localhost ([::1]:39112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTZUA-0000zS-J2 for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Apr 2020 19:17:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60036) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTZTF-0000P8-Jf for emacs-devel@gnu.org; Tue, 28 Apr 2020 19:16:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTZTE-0001Ig-6t for emacs-devel@gnu.org; Tue, 28 Apr 2020 19:16:57 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:51487) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jTZTD-0001II-OB for emacs-devel@gnu.org; Tue, 28 Apr 2020 19:16:55 -0400 X-Originating-IP: 128.53.235.90 Original-Received: from [10.0.1.13] (pl12634.ag0304.nttpc.ne.jp [128.53.235.90]) (Authenticated sender: jean.christophe.helary@traduction-libre.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id B31081C0007 for ; Tue, 28 Apr 2020 23:16:51 +0000 (UTC) In-Reply-To: <83368n3b2y.fsf@gnu.org> X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=217.70.183.197; envelope-from=jean.christophe.helary@traduction-libre.org; helo=relay5-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/28 19:16:52 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 217.70.183.197 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248055 Archived-At: Paul, Eli, thank you for the replies. > On Apr 29, 2020, at 0:05, Eli Zaretskii wrote: >=20 >> From: Jean-Christophe Helary = >> Date: Tue, 28 Apr 2020 23:52:48 +0900 >>=20 >>> 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". >>=20 >> I'm sorry to get back to this now, but I'm reading an introduction to = C in French where I found: >>=20 >> "Une des particularit=C3=A9s du type char en C est qu=E2=80=99il peut = =C3=AAtre assimil=C3=A9 =C3=A0 un entier: tout objet de type char peut = =C3=AAtre utilis=C3=A9 dans une expression qui utilise des objets de = type entier. Par exemple, si c est de type char, l=E2=80=99expression c = + 1 est valide." >>=20 >> Is that the reason why characters are integers in emacs lisp too ? >=20 > If you are asking why this happened historically, then I don't know: I > wasn't there. Maybe Richard can answer that. @Eli Maybe historically but also generally speaking, is it more = convenient to implement characters as integers because that was the way = it is done in other languages like C (which plays an important part in = Emacs) ? @Paul I was asking about C because it seems to me that this part of = emacs lisp is implemented in C, so if C does that then my uninformed = idea is that it's easier create a similar implementation for emacslisp ? Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune