[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
What happens when I evaluate the call the second time?
From: |
Eric Lilja |
Subject: |
What happens when I evaluate the call the second time? |
Date: |
Tue, 03 Jul 2007 00:20:30 +0200 |
User-agent: |
Thunderbird 2.0.0.4 (Windows/20070604) |
Hello, I've just started with lisp programming and I encountered
something I thought was odd.
Using GNU Emacs 22.0.990.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on
MINDCOOLER
Starting with -Q
In the scratch buffer I write
(defun average (x y)
(/ (+ x y) 2)
)
(average 2 3)
First C-x C-e after the function, then twice after calling it. The
output is:
average
2
2 (#o2, #x2, ?\C-b)
Now what's the (#o2, #x2, ?\C-b) stuff?
- Eric
PS. I notice that the output is 2 and not 2.5, I guess the output gets
truncated to an integer (the decimal part is discarded).
- What happens when I evaluate the call the second time?,
Eric Lilja <=