>>>> "Katsumi" == Katsumi Yamaoka
<yamaoka(a)jpl.org> writes:
Katsumi> Hi,
Katsumi> Please evaluate the following four Lisp forms one by one:
Katsumi> (defun hello-world ()
Katsumi> "Hello World")
Katsumi> (hello-world)
Katsumi> (byte-compile 'hello-world)
Katsumi> (hello-world)
Katsumi> I got the string "Hello World" by the second form, but nil by
Katsumi> the fourth form. I am at a loss for words...
Hi Katsumi!
I get the same in
(emacs-version)
"XEmacs 21.5 (beta14) \"cassava\" [Lucid] (i586-pc-win32, Mule) of Fri Jun
13 2003 on D5DC120J"
(disassemble 'hello-world)
leads this:
This suggests the byte-compiler takes "Hello World" to be the
docstring, leaving no body for the function.
This of course is in contradiction with the spec
arguments: (NAME ARGLIST [DOCSTRING] BODY...)
where docstring is optional but body is not.
Which is confirmed by
(defun nada)
leading
Wrong number of arguments: defun, 1
I'd say this is a byte-compiler bug.
--
Adrian Aichner
mailto:adrian@xemacs.org
http://www.xemacs.org/