From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Q about staticvec declaration Date: Wed, 27 Mar 2024 13:15:25 +0100 Message-ID: References: <06146E97-A917-4645-B29F-5E26E58A2B7F@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30155"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: emacs-devel@gnu.org To: =?UTF-8?Q?Mattias_Engdeg=C3=A5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 27 13:16:21 2024 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 1rpSCZ-0007c0-H5 for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Mar 2024 13:16:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpSC7-0002by-0J; Wed, 27 Mar 2024 08:15:51 -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 1rpSBn-0002PI-O8 for emacs-devel@gnu.org; Wed, 27 Mar 2024 08:15:32 -0400 Original-Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rpSBl-0003Jt-UR for emacs-devel@gnu.org; Wed, 27 Mar 2024 08:15:31 -0400 Original-Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-414953ec671so2614475e9.1 for ; Wed, 27 Mar 2024 05:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711541728; x=1712146528; darn=gnu.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=vhrSJPcFVSMAjQLYRWV6FekWceEI+k15KWWCnl4Q2mE=; b=iW1Ce0CBT1elDXfOhxJFFs4Iyn8pcbLSt3VjhPJvp/AE5lxQWWVJ2rfdXD09gMsa1K m8GATPYNNxIMguJDVSJDJ89dBiD5LTfg4t375GkC1fml5o5T1iLeePLx2trT+ehPNi07 bYbE+8Hpz5crnflf+VTnR2Cqgns7/SyCOP7r/u5oGDFRVolmJOAbJjaYhZWpfTk27tzG u13pTVv2uVwnbLN19WYMOYeJ58S6R3menCpJtjpbbBRCQ4QWVViXn6jjjWHUauZh18Gw +C4RS8VALXO+fEc4TOg9EQJFlgsyTxkT3MQvEKIwGttODfm846KNXnO/QP9L1te8iWdB /JhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711541728; x=1712146528; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=vhrSJPcFVSMAjQLYRWV6FekWceEI+k15KWWCnl4Q2mE=; b=imxEVHneyJj8DQOOtws/CWuQQrxxtbe/ImnqQsNHmOZwOSKFN5R1t2+khh/F2P4Bdi sUi7JQ26sDsb60QDiSj8OqUZR1SV2DcYoNja9Qd0r3o6ssPR1TzOej9ORtrEQVqQ84QQ tWUOMcFZDC+c/54cceMuLAVyDofsKVTzAWLC7XRNqdfD2hEWNGyYGHpSExQpNZXR1++V PwV7mEOjq2GwIYvgwEHPF4QOBeh6ikQk4N9VeZnblXNjPb8H3alAsG0yMwGbLJVWgsQ2 d8Kal1g1TSGWhlQFG/OAJf1hHGVwO4l08pZ6ohfwp0+8q08fKBZ7P+1SpOExbfbN2L8t KkOw== X-Gm-Message-State: AOJu0Yw1WeF//OTsyg5EoQA2o2HRXgeR/d3aVMOLlIq8TAwHPHXSq5eq Iq1TeMjg2kIYuwyFdgniJnN2AQWw8smCuePCe10sK2x83CphDgaeDH1oSJhy X-Google-Smtp-Source: AGHT+IHVsg8DIiLfe+nAGhLuvyplZ5er2bDXvCAgHYIJlRE3gHEKpCuSPiCvt7jUOCeATbMvMAN5cA== X-Received: by 2002:a05:600c:1554:b0:414:60fe:8f2b with SMTP id f20-20020a05600c155400b0041460fe8f2bmr4011033wmg.18.1711541728034; Wed, 27 Mar 2024 05:15:28 -0700 (PDT) Original-Received: from [192.168.178.26] (p4fe3ac7d.dip0.t-ipconnect.de. [79.227.172.125]) by smtp.gmail.com with ESMTPSA id jn23-20020a05600c6b1700b00414112a6159sm1922837wmb.44.2024.03.27.05.15.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Mar 2024 05:15:27 -0700 (PDT) Content-Language: en-US, de-DE Autocrypt: addr=gerd.moellmann@gmail.com; keydata= xsFNBGK3Qz4BEADz6clhctm9qf4lh1IJMOGL8dEBtyR8ZvdCtv1m7Oj5BVmBrHbF/hp/R/7m VAPNsyfPKNuqlesBmh/hr5zEHdzHMvLj8Hf5Yp8Ufo0ZqOtCzvIe62PHKvjt59FMNH3fpnId g5/8Kea2plWwH2u2hwxkhgC1mlMQFCILPED7OIMA3y4QvVbHqGP+kFl0OVHc4BeJHEXpVZTq RZl7q6V0LaXZtYWNffvQ/BWa9gmc1HztQTSBx6f3Lf9VTf5gQK7k691U+Vgyz7asKkHKeMO5 cdHAwsN+G+oI4KB2YCm2UMMpUKnoFLxdmswQGu1z6D75YlfxDLZmOTphlFXvIstoJnAgcT1Z ubowXAlHbxGnTfugZfe19xJxRTZ9zOty6m0aNaT4MshBQRj18nkZiBjZIoVQmluVMSgQ3kKJ cDzv+IijRf/9ekOcCfM8PK2pxOHX/lXm4fVW8hS4OMp/IPGTvAvu2ZXUOJSZpTUYz0EY3Al9 3XArmICvatrX/ePgvonkWJuruIQ6pPoefCsJyWaZj4/nrlW2mweDfVBkTbblbLO98UHM1TYu 1Pc0eTZChk7+5F8dXj7Tfn2Ll4xMVoYbIV5yEr1wMq/9d6S2EckCZAnH7R1romvtJhcse+uz tB2nyqxvCwMzZ28RrJiXkR4QIMSJi1ZMHU0dFQlkwZ/sRN0asQARAQABzSlHZXJkIE3Dtmxs bWFubiA8Z2VyZC5tb2VsbG1hbm5AZ21haWwuY29tPsLBlAQTAQoAPhYhBIq2Hj6Yk/Nh45H7 aXPqGxmQxT5jBQJit0M+AhsDBQkHhh9SBQ In-Reply-To: <06146E97-A917-4645-B29F-5E26E58A2B7F@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=gerd.moellmann@gmail.com; helo=mail-wm1-x335.google.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, 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:317335 Archived-At: On 27.03.24 12:44, Mattias EngdegÄrd wrote: > 27 mars 2024 kl. 10.38 skrev Gerd Möllmann : > >> Can someone please explain why staticvec is declared as >> >> Lisp_Object const *staticvec[NSTATICS] >> >> which is the same as >> >> const Lisp_Object *staticvec[NSTATICS] > > That's just a matter of individual handwriting, there's nothing more to it. > I think we can tolerate either. > You mean the "type const" vs. "const type"? I agree that doesn't matter much. What I meant to ask is why are the Lisp_Objects considered const when viewed through staticvec. I mentioned the other form in case it weren't clear that both are the same. I mean, the staticpro'd variables are clearly non-const.