unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* What happens when I evaluate the call the second time?
@ 2007-07-02 22:20 Eric Lilja
  2007-07-03  9:45 ` Mathias Dahl
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Lilja @ 2007-07-02 22:20 UTC (permalink / raw)
  To: emacs-devel

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).

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-07-03 16:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-02 22:20 What happens when I evaluate the call the second time? Eric Lilja
2007-07-03  9:45 ` Mathias Dahl
2007-07-03 10:00   ` Andreas Schwab
2007-07-03 14:32     ` Lennart Borgman (gmail)
2007-07-03 16:03       ` Andreas Schwab
2007-07-03 16:07         ` Lennart Borgman (gmail)

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).