From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#66615: 30.0.50; Inconsistent 'number-or-marker' type definition in the cl- machinery Date: Thu, 19 Oct 2023 18:34:39 -0400 Message-ID: References: Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13686"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 66615@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 20 00:35:53 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qtbcP-0003LO-4m for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Oct 2023 00:35:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtbc8-0005kQ-Vv; Thu, 19 Oct 2023 18:35:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtbc7-0005k3-5B for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 18:35:35 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtbc6-00044Q-Sw for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 18:35:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtbcX-0007Kq-Lf for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 18:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Oct 2023 22:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66615 X-GNU-PR-Package: emacs Original-Received: via spool by 66615-submit@debbugs.gnu.org id=B66615.169775491828139 (code B ref 66615); Thu, 19 Oct 2023 22:36:01 +0000 Original-Received: (at 66615) by debbugs.gnu.org; 19 Oct 2023 22:35:18 +0000 Original-Received: from localhost ([127.0.0.1]:38054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtbbq-0007Jn-Ay for submit@debbugs.gnu.org; Thu, 19 Oct 2023 18:35:18 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:50212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtbbm-0007JY-Hk for 66615@debbugs.gnu.org; Thu, 19 Oct 2023 18:35:16 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0C280100151; Thu, 19 Oct 2023 18:34:42 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1697754880; bh=09lpd+LWcRzlOnxMxj4CnJ/+l5IfnnZHSm8NDUwonsI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Lq8hnpxf85FdAdQtfsbTO3A0B25ZzaXOKjZHYVRnGsu6XA9Cdmc/9FZvuIG4riiK7 veYBa8o8yaDZBqXd2sBvNeDhJ2m9u1YPkxkeJDUYt4FzKyQV8xTGhEccybf2aGStRm p9ofuEsfyYZOeEYzsYf83y8JavZKb0lt3DX6DnB7Igwnmdbh+9lFy+gDKZ39zbgp+1 vL9aIjRd8SUF36IdtUBi2ns6H2t2bTCxFHtQIq52cFFqnkGj90pptBttdCwmY4pxVl yRl+G2kmlrC181yorn9Z5sZWaC4LQddn29OUlbm5J5Xl0aG2pU/vNgj21vIgPFDtUZ H4oRT+xMbi/yQ== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id E661A1000A3; Thu, 19 Oct 2023 18:34:40 -0400 (EDT) Original-Received: from pastel (unknown [45.72.216.111]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id BE7831202CB; Thu, 19 Oct 2023 18:34:40 -0400 (EDT) In-Reply-To: (Andrea Corallo's message of "Thu, 19 Oct 2023 17:24:23 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272763 Archived-At: > I've to question now the following entry introduced in > `cl--typeof-types' for correctness: > > (integer number integer-or-marker number-or-marker atom) > > The doc says : > Each element has the form (TYPE . SUPERTYPES) where TYPE is one of > the symbols returned by =E2=80=98type-of=E2=80=99, and SUPERTYPES is the = list of its > supertypes from the most specific to least specific. > > And indeed not every 'number' is an 'integer-or-marker'. The subtype relation doesn't derive from a tree but a DAG so the SUPERTYPES represents *a* linearization of the parents but just because `number` appears before `integer-or-marker` doesn't mean that it's a subtype of it. It just means I judged that it should be considered "more specific". The same effect is in play for: (null symbol list sequence atom) where clearly `symbol` is a subtype of neither `list` nor `sequence`. > I suspect that's the reason why this commit introduces few failures in > the native-comp testsuite. If you need to know the list of supertypes of `number`, we could add that info explicitly, or you could "guess" it as the intersection of all the types that appear after `number` in `cl--typeof-types`: (integer number integer-or-marker number-or-marker atom) [...] (float number number-or-marker atom) [...] i.e. the intersection of (integer-or-marker number-or-marker atom) and (number-or-marker atom). Stefan