emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#46834: closed (28.0.50; byte-compiling the standard counter closure


From: GNU bug Tracking System
Subject: bug#46834: closed (28.0.50; byte-compiling the standard counter closure fails)
Date: Tue, 02 Mar 2021 07:37:01 +0000

Your message dated Tue, 2 Mar 2021 07:36:06 +0000
with message-id 
<CAOqdjBf2d67sOrJvQ5+NX6cGV_HJP0-geJV0T443vbZoPKhLzQ@mail.gmail.com>
and subject line Re: bug#46834: 28.0.50; byte-compiling the standard counter 
closure fails
has caused the debbugs.gnu.org bug report #46834,
regarding 28.0.50; byte-compiling the standard counter closure fails
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
46834: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=46834
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 28.0.50; byte-compiling the standard counter closure fails Date: Sun, 28 Feb 2021 15:04:06 +0000
(My apologies if this is well-known, documented, or plain stupid on my
part, but I think it's an interesting gotcha. Feel free to close
immediately in those cases.)

Steps to reproduce from emacs -Q:
Evaluate the following in a lexically-bound Emacs Lisp buffer:

(byte-compile (let ((l 0)) (lambda () (cl-incf l))))

Expected result:

A byte code object which will increment its return value by one every
time it is called.

Actual result:

A byte code object which always returns 1.



--- End Message ---
--- Begin Message --- Subject: Re: bug#46834: 28.0.50; byte-compiling the standard counter closure fails Date: Tue, 2 Mar 2021 07:36:06 +0000
On Tue, Mar 2, 2021 at 7:34 AM Lars Ingebrigtsen <larsi@gnus.org> wrote:
> > It's been a while since I pushed, did I get that right?
>
> Yup; looks perfect.

Thanks for checking, and I'm closing the bug.

Pip


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]