* Re: [Emacs-diffs] trunk r117006: * lisp/emacs-lisp/cl-macs.el (cl-struct-slot-offset): Mark as pure. [not found] <E1WcRE0-0007Un-VU@vcs.savannah.gnu.org> @ 2014-04-22 4:00 ` Daniel Colascione 2014-04-22 4:31 ` Stefan Monnier 0 siblings, 1 reply; 2+ messages in thread From: Daniel Colascione @ 2014-04-22 4:00 UTC (permalink / raw) To: Stefan Monnier, emacs-devel [-- Attachment #1: Type: text/plain, Size: 628 bytes --] On 04/21/2014 08:18 PM, Stefan Monnier wrote: > ------------------------------------------------------------ > revno: 117006 > revision-id: monnier@iro.umontreal.ca-20140422031815-fc7amrf88mkuwh0r > parent: dancol@dancol.org-20140421180019-po4wdeg7gqvvlh5d > committer: Stefan Monnier <monnier@iro.umontreal.ca> > branch nick: trunk > timestamp: Mon 2014-04-21 23:18:15 -0400 > message: > * lisp/emacs-lisp/cl-macs.el (cl-struct-slot-offset): Mark as pure. I expected the compiler to collapse redundant calls to pure functions, but not to evaluate them completely at compile time. That's an elegant approach. [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 884 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Emacs-diffs] trunk r117006: * lisp/emacs-lisp/cl-macs.el (cl-struct-slot-offset): Mark as pure. 2014-04-22 4:00 ` [Emacs-diffs] trunk r117006: * lisp/emacs-lisp/cl-macs.el (cl-struct-slot-offset): Mark as pure Daniel Colascione @ 2014-04-22 4:31 ` Stefan Monnier 0 siblings, 0 replies; 2+ messages in thread From: Stefan Monnier @ 2014-04-22 4:31 UTC (permalink / raw) To: Daniel Colascione; +Cc: emacs-devel > I expected the compiler to collapse redundant calls to pure functions, I wish it did, but sadly, it doesn't know how to do that. We'd want another property for it, tho (something like `idempotent', maybe), since that can be applied to different functions. Stefan ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-22 4:31 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <E1WcRE0-0007Un-VU@vcs.savannah.gnu.org> 2014-04-22 4:00 ` [Emacs-diffs] trunk r117006: * lisp/emacs-lisp/cl-macs.el (cl-struct-slot-offset): Mark as pure Daniel Colascione 2014-04-22 4:31 ` Stefan Monnier
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.