|
From: | Robert Boyer |
Subject: | bug#69470: bug in cl-return-from |
Date: | Thu, 29 Feb 2024 11:06:18 -0600 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |