From: Leo Liu <sdl.web@gmail.com>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: 25280@debbugs.gnu.org
Subject: bug#25280: 25.1; define-inline doesn't support &rest
Date: Thu, 29 Dec 2016 10:00:11 +0800 [thread overview]
Message-ID: <m137h7xzo4.fsf@gmail.com> (raw)
In-Reply-To: <jwva8bh8emi.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Tue, 27 Dec 2016 12:42:44 -0500")
On 2016-12-27 12:42 -0500, Stefan Monnier wrote:
> OTOH it's not as efficient as we'd like. The better way to write it is:
>
> (define-inline sm-foo (&rest xs)
> (inline-letevals xs (inline-quote (vector . ,xs))))
I misunderstood no support for `,@' implied `. ,'. Good to know it is
not the case. My experiment seems to suggest that inline-letevals is
only needed for variables that are eval'd more than once. Is that
understanding correct?
I also get compiler warning:
In rest:
t2.el:4:38:Warning: reference to free variable ‘vector’
where t2.el has the contents:
;;; -*- lexical-binding: t -*-
(define-inline rest (&rest xs)
(inline-letevals xs (inline-quote (vector . ,xs))))
Thanks,
Leo
next prev parent reply other threads:[~2016-12-29 2:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-27 2:42 bug#25280: 25.1; define-inline doesn't support &rest Leo Liu
2016-12-27 3:21 ` Stefan Monnier
2016-12-27 4:25 ` Leo Liu
2016-12-27 15:25 ` Stefan Monnier
2016-12-27 17:42 ` Stefan Monnier
2016-12-29 2:00 ` Leo Liu [this message]
2016-12-29 2:41 ` Leo Liu
2016-12-29 3:25 ` Stefan Monnier
2016-12-29 5:54 ` Leo Liu
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=m137h7xzo4.fsf@gmail.com \
--to=sdl.web@gmail.com \
--cc=25280@debbugs.gnu.org \
--cc=monnier@IRO.UMontreal.CA \
/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).