all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Troy Hinckley <troyhinckley@gmail.com>
Cc: emacs-devel@gnu.org, matt@rfc20.org
Subject: Re: question about Qnil representation
Date: Wed, 26 Oct 2022 19:45:10 +0300	[thread overview]
Message-ID: <83wn8mmt49.fsf@gnu.org> (raw)
In-Reply-To: <d48212c3-9688-4a0a-8b1a-401b9ab43a2c@Spark> (message from Troy Hinckley on Wed, 26 Oct 2022 10:22:54 -0600)

> Date: Wed, 26 Oct 2022 10:22:54 -0600
> From: Troy Hinckley <troyhinckley@gmail.com>
> 
> Let me try again. As I understand it, every Symbol is an instance if Lisp_Symbol. The Lisp_Object is an
> integer that can represent multiple types with tags defined by Lisp_Type. If the tag is 0, then the type is a
> symbol. In that case you would treat the rest of the bytes in the Lisp_Object as pointer to a Lisp_Symbol
> instance. However if the symbol nil is defined as 0, then it is not a pointer to anything. How then do you access
> that symbol? Is there special case code to handle the null pointer?

See make_lisp_symbol and builtin_lisp_symbol, and I think you will
understand what's going on here.  Also see the value stored in
lispsym[0].




  reply	other threads:[~2022-10-26 16:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5a560265-fa81-42d2-945b-ab85d72df9e6@Spark>
2022-10-26 15:40 ` question about Qnil representation Troy Hinckley
2022-10-26 16:00   ` Eli Zaretskii
2022-10-26 16:04     ` Troy Hinckley
2022-10-26 16:09       ` Eli Zaretskii
2022-10-27  0:45       ` Po Lu
2022-10-26 16:16   ` Matt Armstrong
2022-10-26 16:22     ` Troy Hinckley
2022-10-26 16:45       ` Eli Zaretskii [this message]
2022-10-26 18:46         ` Troy Hinckley
2022-10-26 19:01           ` Stefan Monnier
2022-10-26 19:03           ` Eli Zaretskii
2022-10-27  0:47           ` Po Lu

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

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

  git send-email \
    --in-reply-to=83wn8mmt49.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=matt@rfc20.org \
    --cc=troyhinckley@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.