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

Re: w3m-touch-file



も一つ、
昔 himi さんから教わったんですが、以下を byte-compile すると、
生成される byte-code はどれもまったく同じになります。:-)

(defun foo1 (a b)
  ;; Return a product of multiplication A by B by the return value of
  ;; `message'.
  (and a
       b
       (message "t")))

(defun foo2 (a b)
  ;; If both A and B are non-nil, say t in the echo area."
  (if (and a b)
      (message "t")))

(defun foo3 (a b)
  ;; When both A and B are non-nil, say t in the echo area."
  (when (and a b)
    (message "t")))

(defun foo4 (a b)
  ;; If both A and B are non-nil, say t in the echo area."
  (if (and a b)
      (progn
	nil
	(message "t"))))
-- 
Katsumi Yamaoka <yamaoka@jpl.org>