From: "Elias Mårtenson" <lokedhs@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Error using iterators: cps-internal-yield
Date: Sat, 2 Jun 2018 00:37:09 +0800 [thread overview]
Message-ID: <CADtN0WK+yhh90SNkeGTMGWh6R_w6AXcLpWxKGQKe5dkR-NdmDA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 626 bytes --]
I was trying out the new iterator feature, and managed to write a small
test program that gives an error. I presume there is a problem with how the
macro interacts with cl-labels.
Here's the test code:
(iter-defun bar ()
(cl-labels ((foo ()
(iter-yield 'a)
(iter-yield 'b)
(iter-yield 'c)
(iter-yield 'd)))
(foo)
(foo)))
(let ((x (bar)))
(loop repeat 8
collect (iter-next x)))
When run, it gives the following error:
*** Eval error *** Symbol’s function definition is void: cps-internal-yield
Regards,
Elias
[-- Attachment #2: Type: text/html, Size: 945 bytes --]
next reply other threads:[~2018-06-01 16:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-01 16:37 Elias Mårtenson [this message]
2018-06-01 17:20 ` Error using iterators: cps-internal-yield Noam Postavsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADtN0WK+yhh90SNkeGTMGWh6R_w6AXcLpWxKGQKe5dkR-NdmDA@mail.gmail.com \
--to=lokedhs@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).