bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#42147: 28.0.50; pure vs side-effect-free, missing optimizations?


From: Mattias Engdegård
Subject: 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@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.)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]