From: Okamsn via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 72753@debbugs.gnu.org
Subject: bug#72753: Different output between SBCL `loop` and Emacs `cl-loop`
Date: Thu, 22 Aug 2024 01:55:07 +0000 [thread overview]
Message-ID: <873b4331-a9c1-423a-a02b-acea0b92cbec@protonmail.com> (raw)
Hello,
The following in SBCL 2.1.11 produces 3, which I expected.
(loop for i in '(1 2 3)
for j from 1
finally (return j))
The following in Emacs 29 produces 4, which I did not expect.
(cl-loop for i in '(1 2 3)
for j from 1
finally (cl-return j))
This is a simplified example that only shows the difference.
I don't know what the standard behavior is, but I personally believe
that the SBCL output makes more sense.
Thank you.
next reply other threads:[~2024-08-22 1:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-22 1:55 Okamsn via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-08-22 7:57 ` bug#72753: Different output between SBCL `loop` and Emacs `cl-loop` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-23 11:21 ` Robert Pluim
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=873b4331-a9c1-423a-a02b-acea0b92cbec@protonmail.com \
--to=bug-gnu-emacs@gnu.org \
--cc=72753@debbugs.gnu.org \
--cc=okamsn@protonmail.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.