unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: dlet (need help): let: Symbol’s value as variable is void: wrs::variables
Date: Tue, 21 Sep 2021 01:17:16 +0200	[thread overview]
Message-ID: <87pmt27s77.fsf@web.de> (raw)
In-Reply-To: courier.000000006148BAC4.000059D0@stw1.rcdrun.com

Jean Louis <bugs@gnu.support> writes:

> I just know that this code worked, and now it doesn't:
>
> (dlet ((wrs::variables (make-hash-table :test 'equal))
>        (wrs::_ (puthash "areas_name" "Hyperscope" wrs::variables)))
>   )
> [...]
> No need to disadvise me using `dlet' as I do need it. Does anybody
> know if this could be bug or why it does not work?

I think this should be due to this:

| b72f88518b Make dlet work like let, not let*
| Mattias Engdegård <mattiase@acm.org> Sun Aug 1 17:05:48 2021 +0200
| 
| Change `dlet` so that it has binding semantics like `let` because that
| is what a user would expect and it allows a corresponding `dlet*` to
| be added later should the need arise.  Fortunately the change has no
| effect where it is currently used.

There was a discussion about that before the change, should not be hard
to find if you are interested in the reasons.

AFAIR there were was not much interest in adding `dlet*'.


Michael.




  reply	other threads:[~2021-09-20 23:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-20 16:45 dlet (need help): let: Symbol’s value as variable is void: wrs::variables Jean Louis
2021-09-20 23:17 ` Michael Heerdegen [this message]
2021-09-21  4:28   ` Jean Louis

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=87pmt27s77.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=help-gnu-emacs@gnu.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.
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).