From: Artur Malabarba <bruce.connor.am@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>, Nicolas Petton <nicolas@petton.fr>
Cc: emacs-diffs@gnu.org
Subject: Re: master 0f443a1: New library thunk.el
Date: Tue, 27 Oct 2015 23:42:54 +0000 [thread overview]
Message-ID: <CAAdUY-KjPJmQq2eyPzzT_ef8g9qyJjGYA4_yuN__aURCFPm+OA@mail.gmail.com> (raw)
In-Reply-To: <E1ZpaQT-00061b-NS@vcs.savannah.gnu.org>
[-- Attachment #1.1: Type: text/plain, Size: 512 bytes --]
> +(defmacro thunk-delay (&rest body)
> + "Delay the evaluation of BODY."
> + (declare (debug t))
> + (let ((forced (make-symbol "forced"))
> + (val (make-symbol "val")))
> + `(let (,forced ,val)
> + (lambda (&optional check)
> + (if check
> + ,forced
> + (unless ,forced
> + (setf ,val (progn ,@body))
> + (setf ,forced t)))
> + ,val))))
Maybe I'm misreading this on my phone, but it looks like this val should be
inside the if.
[-- Attachment #1.2: Type: text/html, Size: 739 bytes --]
next parent reply other threads:[~2015-10-27 23:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20151023112225.23125.55822@vcs.savannah.gnu.org>
[not found] ` <E1ZpaQT-00061b-NS@vcs.savannah.gnu.org>
2015-10-27 23:42 ` Artur Malabarba [this message]
2015-10-28 8:56 ` [Emacs-diffs] master 0f443a1: New library thunk.el Nicolas Petton
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=CAAdUY-KjPJmQq2eyPzzT_ef8g9qyJjGYA4_yuN__aURCFPm+OA@mail.gmail.com \
--to=bruce.connor.am@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=emacs-diffs@gnu.org \
--cc=nicolas@petton.fr \
/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).