From: Paul Eggert <eggert@cs.ucla.edu>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>,
Dmitry Antipov <dmantipov@yandex.ru>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: [Emacs-diffs] trunk r117846: Add macros to allocate temporary Lisp objects with alloca.
Date: Tue, 09 Sep 2014 11:37:13 -0700 [thread overview]
Message-ID: <540F48D9.8050601@cs.ucla.edu> (raw)
In-Reply-To: <jwvr3zkllwd.fsf-monnier+emacsdiffs@gnu.org>
Stefan Monnier wrote:
> Any chance `alignas' can be used where we create the stack-allocated
> object, maybe?
Although I think we could do that, there would be quite a cost in terms
of expressiveness. The macro to create the stack-allocated object would
have to expand to a declaration of a local variable, which would mean
that it could not be a function-like macro scoped_cons (a, b) but
instead would have to be a declaration-like macro SCOPED_NAMED_CONS
(name, a, b), where NAME would give the name of the newly-allocated
struct Lisp_Cons object.
I'm finding it a bit hard to think about all this, by the way, as it the
new definitions aren't used anywhere, which makes it hard to see some of
the motivation here.
prev parent reply other threads:[~2014-09-09 18:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1XRCNv-0007Z7-Ic@vcs.savannah.gnu.org>
2014-09-09 13:13 ` [Emacs-diffs] trunk r117846: Add macros to allocate temporary Lisp objects with alloca Stefan Monnier
2014-09-09 14:16 ` Dmitry Antipov
2014-09-09 15:10 ` Paul Eggert
2014-09-10 6:43 ` Paul Eggert
2014-09-10 8:20 ` Dmitry Antipov
2014-09-10 15:28 ` Paul Eggert
2014-09-09 17:55 ` Stefan Monnier
2014-09-09 18:37 ` Paul Eggert [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=540F48D9.8050601@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=dmantipov@yandex.ru \
--cc=emacs-devel@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 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.