From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Why have a #if .... #else .... #endif construct in Emacs Lisp, when we could make the existing code DTRT unchanged? Date: Fri, 08 Sep 2023 10:45:39 +0800 Message-ID: <87pm2te624.fsf@yahoo.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34043"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Alan Mackenzie , ulm@gentoo.org, emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 08 04:46:35 2023 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 1qeRVz-0008fy-Dg for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Sep 2023 04:46:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeRVN-0002DB-SZ; Thu, 07 Sep 2023 22:45:57 -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 1qeRVM-0002Cz-Nd for emacs-devel@gnu.org; Thu, 07 Sep 2023 22:45:56 -0400 Original-Received: from sonic304-22.consmr.mail.ne1.yahoo.com ([66.163.191.148]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qeRVK-000866-AT for emacs-devel@gnu.org; Thu, 07 Sep 2023 22:45:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1694141151; bh=dXdLPHmtwBx0mCGDPubS4wD23z+GgWfQi4/yMfrrkK4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=MWiLcGRTl67/qt6W6f2iJ7fMx7/g0VxtKb8YX12ZLXNhL+EG/lq+0iGnBc7rJLHuwolpMjQd6Ir9G8gC6odY514x7VmmY/nEFgjxRug73mznF13mk4uwBtuFejgbF3ZHEzQWcS+OFZkQTGp/zjETZFikV4B/iNp716FCDda5uQ+k3qdxkGVb4Ouvlhg9OI1sPueerQXDe/tcEKENP70VOoXUUXtBREwlsFfQ0tbUa6tfRHAe8EnmMIf62J4cSdAkL4Ct5bw+ggSzBMlkIQZeidIvfSlRzraNiy3a8Bscc6gY8gSqDXTsE6qwOxr/XjA4JD0QILZIQiUjZgpKgM0erw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1694141151; bh=ZR2ZYZM5Rh7leO48U+rlEBUl1TaFPCHAH2u1umeUzGU=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=pflOS7g8TYm1389yVc+WeDxmRTYX3fXYoXrQTfg75p0uiRaZxFCK4xEubSeymAAAWcuY6Pi7sLqeCJBJwfXywxbVfO1Vpd13E18foFKzZ4tYFvSWf2K2oV6gRmX3XiXRxHqKkOrRCQbdYcfhgaazw9lbJz2gJwhaWI9JGgr4ue4qvYco76V9c6L7vKcPIL5Uy3a5wkVCb3B43dj6NJA+4PZ5+4pwtHM7GD4qsuaeiB08IWI1cDjIVoyLrtPLdpEytcYiQ0tJmpJhIctrt6hEtj1BT6XUzaXvJpEAj4ZBlhlqQ/jwM4fqRVJbMelOKH5Aapq3Czsy2IXt1fOLyc59/A== X-YMail-OSG: .aFvdp4VM1n9lvVFs8IL4sc7JO.IdK7Crs2yKst20ygB5fJWOgHjWbErLDYG4I6 K6099KpmbqXawrZoPTqIMMsnHXYKPVKUKKtCj_REKkTrvAKTS7TPDcx4ZDaNLMSFX2Jl_HG6B6jq 9SdifFJ8BR.daZPoHX5RUAYy9.38yKLq1S4KSUjcIm29NC63LtFio24gSmUH4up6BpCIE7GUI7nr pxYkoTeZPfXHFXymzeSZEnXIznHcMiRkG9fmKBU7vXqwS_suiOok5mXLqfnHXBVhoV8WtPad0MrM zKAzki.n_VaC2TaaKn2epAYpFkFTtxh6yM63KOo3xEWyAwulPY07RTfE1tKP6M2On__7cEraLdiu fK9E2LEQj6Gnekwl_n0L_i47fUKxR_SzVvc5AmhmuiQt1BpzD34T9F9BxEBrZ3FyOL7gcOBF.R5. suk7vSQMjxlmcnn_e6Sa95OTe1LQ97vBQ3KX46ubTty0cQA4CFXtsKSirP864fpyiPCLzoWX_O7O ZhPjrblPbP5npqDXD.vh.oq39fEFE6NzZTnmAivAshQ6lpAzM3FkCCYFDisKMsYLQfw60ihNxR8Q hdNsxrqnFuScsHAp89SgNgF7LZtMgIwb9yQLMQZBnT4K5lRUmVAYHSyxE4UUsiRiKn_AqHskB8gO ouFWrK5qNNmJ4owdqza2y3vSRK8rzme0i_vNie5loq50TrwGk2356OXzqz5KKgdIUtv3ZcllxUk_ iMprVhkdhKIHYTgWnfVCw.c847H.zYsCemR9..Yc0VLcNEQxWvuE66ENGaWleafK7o5GfsqOi9Ty Ky7cAi5o2832uQ6zpLU46j5hmw8t1ziAyjYIFT.jRK X-Sonic-MF: X-Sonic-ID: cccd830d-a689-472d-9cd9-5f56684ec814 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Fri, 8 Sep 2023 02:45:51 +0000 Original-Received: by hermes--production-sg3-69654d8bd-tsbjv (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 3128ac56b2f9dbad661e5ea12cfdcd80; Fri, 08 Sep 2023 02:45:44 +0000 (UTC) In-Reply-To: (Richard Stallman's message of "Thu, 07 Sep 2023 21:01:04 -0400") X-Mailer: WebService/1.1.21763 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.191.148; envelope-from=luangruo@yahoo.com; helo=sonic304-22.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:310303 Archived-At: Richard Stallman writes: > Optimizing these tests to operate at compile time is a separate issue. > Please DON'T introduce a new construct `static-if' -- instead please > make the compiler optimize the constructs that are already in the > code. That's already a fait accompli: static-if was introduced several days ago.