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

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

bug#69470: bug in cl-return-from


From: Andrea Corallo
Subject: bug#69470: bug in cl-return-from
Date: Thu, 29 Feb 2024 11:59:08 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

Robert Boyer <robertstephenboyer@gmail.com> writes:

> It is almost certainly a bug in the definition of cl-return-from that the 
> following
> does not work.  I have no idea whether it is possible to fix.  Could be 
> really hard
> or undesirable to fix.  I know nothing.
>
> Emacs is great beyond words.
>
> Thanks so much,
>
> Bob
>
>   (defun foo () (cl-return-from foo 3))
>   (foo)
>
> I strongly believe that in Common Lisp, every (defun foo ...) wraps
> a block named foo around the ...

Hi Bob,

unfortunately or not, this is elisp not CL :)

If you want to do that the following works:

(cl-defun foo () (cl-return-from foo 3))
(foo) => 3

Best Regards

  Andrea





reply via email to

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