unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Gerd Möllmann" <gerd.moellmann@gmail.com>
To: "Mattias Engdegård" <mattias.engdegard@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Q about staticvec declaration
Date: Wed, 27 Mar 2024 13:15:25 +0100	[thread overview]
Message-ID: <d9a4af3d-dd80-43d4-b275-9df63a884f38@gmail.com> (raw)
In-Reply-To: <06146E97-A917-4645-B29F-5E26E58A2B7F@gmail.com>

On 27.03.24 12:44, Mattias Engdegård wrote:
> 27 mars 2024 kl. 10.38 skrev Gerd Möllmann <gerd.moellmann@gmail.com>:
> 
>> 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.



  reply	other threads:[~2024-03-27 12:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-27  9:38 Q about staticvec declaration Gerd Möllmann
2024-03-27 11:44 ` Mattias Engdegård
2024-03-27 12:15   ` Gerd Möllmann [this message]
2024-03-27 12:54     ` Mattias Engdegård
2024-03-27 13:03       ` Gerd Möllmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d9a4af3d-dd80-43d4-b275-9df63a884f38@gmail.com \
    --to=gerd.moellmann@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=mattias.engdegard@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).