all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#26073: bug in generator function with nested dash anaphoric macros
@ 2017-03-12 13:25 Paul Pogonyshev
  2017-03-12 14:05 ` bug#26073: Simplified testcase Paul Pogonyshev
  2017-03-19 19:31 ` bug#26073: workaround Paul Pogonyshev
  0 siblings, 2 replies; 17+ messages in thread
From: Paul Pogonyshev @ 2017-03-12 13:25 UTC (permalink / raw)
  To: 26073

To reproduce:

(iter-do (y (funcall (iter-lambda (x)
                       (--each x
                          (let ((y (--map (- it) it)))
                            (iter-yield y))))
                     '((1 2) ( 3 4))))
  (print y))

This should print (-1 -2) and (-3 -4), but instead results in an error.
If you comment out the `iter-yield' form, the example evaluates---
producing different output, of course, but at least without errors.

This looks related to bug #26068, but is not fixed by the patch in
that bug. It is likely related to that both nested dash forms use
`it' variable, and it looks like the wrong (outer) `it' is passed to (- it).

Paul





^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2018-02-15  2:37 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-12 13:25 bug#26073: bug in generator function with nested dash anaphoric macros Paul Pogonyshev
2017-03-12 14:05 ` bug#26073: Simplified testcase Paul Pogonyshev
2017-03-19 19:31 ` bug#26073: workaround Paul Pogonyshev
2017-03-20  0:49   ` Stefan Monnier
2017-03-20  9:04     ` Paul Pogonyshev
2017-03-20  9:22       ` Paul Pogonyshev
2017-09-26 14:38         ` Stefan Monnier
2017-09-28 17:18           ` Paul Pogonyshev
2017-09-28 20:07             ` Stefan Monnier
2017-09-28 19:39           ` Philipp Stephani
2017-09-28 20:09             ` Stefan Monnier
2017-11-27 20:34             ` Stefan Monnier
2018-02-09  0:34               ` Noam Postavsky
2018-02-09  2:43                 ` Stefan Monnier
2018-02-15  2:37                   ` Noam Postavsky
2017-03-20 13:25       ` Stefan Monnier
2017-03-20 14:20         ` Paul Pogonyshev

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.