all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: Alan Mackenzie <acm@muc.de>
Cc: Andreas Schwab <schwab@linux-m68k.org>,  emacs-devel@gnu.org
Subject: Re: What's the equivalent of `boundp' for lexical variables?
Date: Sun, 28 Jan 2024 13:28:11 +0800	[thread overview]
Message-ID: <87fryihvro.fsf@yahoo.com> (raw)
In-Reply-To: <ZbQlyVq-LUAco94t@ACM> (Alan Mackenzie's message of "Fri, 26 Jan 2024 21:36:09 +0000")

Alan Mackenzie <acm@muc.de> writes:

> Lexical variables are manipulated by their names, symbols which refer to
> them.
>
> Thanks for being so helpful.  Maybe, just maybe, instead of insisting on
> being pedantically correct, you might try to give the poster information
> which would be useful to him.

I think Andrea's point was that it's not possible.  Take the scenario
where such a lexical boundp is being called with an argument passed by a
caller, rather than a quoted symbol whose value can be associated with a
local binding during compilation.  By the time the code is
byte-compiled, the relations between symbol names and positions on the
stack available to the compiler will have been lost, and would not be
available to boundp either way.



  parent reply	other threads:[~2024-01-28  5:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-26 20:16 What's the equivalent of `boundp' for lexical variables? Alan Mackenzie
2024-01-26 20:50 ` Andreas Schwab
2024-01-26 20:58   ` Alan Mackenzie
2024-01-26 21:25     ` Andreas Schwab
2024-01-26 21:36       ` Alan Mackenzie
2024-01-26 21:44         ` Andreas Schwab
2024-01-28  5:28         ` Po Lu [this message]
2024-01-27  6:21 ` tomas
2024-01-28  3:01   ` Richard Stallman

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=87fryihvro.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=schwab@linux-m68k.org \
    /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.