emacs-devel
[Top][All Lists]
Advanced

[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




reply via email to

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