GNU bug report logs - #42147
28.0.50; pure vs side-effect-free, missing optimizations?

Previous Next

Package: emacs;

Reported by: Andrea Corallo <andrea_corallo <at> yahoo.it>

Date: Tue, 30 Jun 2020 22:28:02 UTC

Severity: normal

Found in version 28.0.50

Done: Mattias EngdegÄrd <mattiase <at> acm.org>

Bug is archived. No further changes may be made.

Full log


Message #259 received at 42147 <at> debbugs.gnu.org (full text, mbox):

From: Mattias EngdegÄrd <mattiase <at> acm.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Philipp Stephani <p.stephani2 <at> gmail.com>, Paul Eggert <eggert <at> cs.ucla.edu>,
 Andrea Corallo <andrea_corallo <at> yahoo.it>, 42147 <at> debbugs.gnu.org
Subject: Re: bug#42147: 28.0.50; pure vs side-effect-free, missing
 optimizations?
Date: Sat, 25 Jul 2020 23:54:29 +0200
25 juli 2020 kl. 23.29 skrev Stefan Monnier <monnier <at> iro.umontreal.ca>:
> 
>> There are also some functions declared 'pure' that appear to have side
>> effects: kbd, package-get-version
> 
> Which side-effects are you thinking of?

They both clobber the match data. Not that it matters for the purpose of compile-time evaluation, but we were discussing exact definitions.

('package-get-version' does a lot more but at least it admits to lying in a comment, so I suppose that's all right then.)





This bug report was last modified 4 years and 282 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.