GNU bug report logs - #72753
Different output between SBCL `loop` and Emacs `cl-loop`

Previous Next

Package: emacs;

Reported by: Okamsn <okamsn <at> protonmail.com>

Date: Thu, 22 Aug 2024 01:57:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Okamsn <okamsn <at> protonmail.com>
To: 72753 <at> debbugs.gnu.org
Subject: bug#72753: Different output between SBCL `loop` and Emacs `cl-loop`
Date: Thu, 22 Aug 2024 01:55:07 +0000
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.





This bug report was last modified 334 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.