[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "simplifications"
From: |
Stefan Monnier |
Subject: |
Re: "simplifications" |
Date: |
Mon, 19 Nov 2007 10:44:27 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) |
>> it doesn't account for the case where
>> you do
>> (defsubst cadr (debug-on-error) (car (cdr debug-on-error)))
>> in which case the optimization is not semantics preserving"
> And I'n not sure it should... I think I agree with David here: if
> you're using defsubst to optimize, you should expect some gotchas.
Well, my optimization is not specific to defsubst, so it will also
remove the let-binding in:
(let ((debug-on-error t))
(car (car (cdr x))))
In any case, if you want a "fast and loose" defsubst, it's there already
under the name defsubst*.
Stefan
- "simplifications", David Kastrup, 2007/11/19
- Re: "simplifications", Juanma Barranquero, 2007/11/19
- Re: "simplifications", Stefan Monnier, 2007/11/19
- Re: "simplifications", David Kastrup, 2007/11/19
- Re: "simplifications", Juanma Barranquero, 2007/11/19
- Re: "simplifications",
Stefan Monnier <=
- Re: "simplifications", Juanma Barranquero, 2007/11/19
- Re: "simplifications", Stefan Monnier, 2007/11/19
- Re: "simplifications", Juanma Barranquero, 2007/11/19
- Re: "simplifications", Stefan Monnier, 2007/11/19
- Re: "simplifications", David Kastrup, 2007/11/19
- Re: "simplifications", Juanma Barranquero, 2007/11/19
- Re: "simplifications", Richard Stallman, 2007/11/19
- Re: "simplifications", Stefan Monnier, 2007/11/20
- Re: "simplifications", Stephen J. Turnbull, 2007/11/21
- Re: "simplifications", David Kastrup, 2007/11/21