all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#72753: Different output between SBCL `loop` and Emacs `cl-loop`
@ 2024-08-22  1:55 Okamsn via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-08-22  7:57 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 3+ messages in thread
From: Okamsn via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-22  1:55 UTC (permalink / raw)
  To: 72753

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.






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-23 11:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-22  1:55 bug#72753: Different output between SBCL `loop` and Emacs `cl-loop` Okamsn via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-22  7:57 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-23 11:21   ` Robert Pluim

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.