Newbie: How do I print/format?
Posted: Thu Feb 04, 2010 6:07 pm
Current reference: http://www.gigamonkeys.com/book/lather- ... -repl.html
Installation guide: http://www.osix.net/modules/article/?id=912
The first link gives this hello-world program:
Whether that statement is wrapped in a function or not, all it does is return NIL on my setup. Maybe it's because I'm using a different compiler (Clisp)?
The best I managed was to get FORMAT to return the given string (the same thing PRINT does):
Calling this function only prints "G":
Did I miss something...? Thanks.
Installation guide: http://www.osix.net/modules/article/?id=912
The first link gives this hello-world program:
Code: Select all
(defun hello-world ()
(format t "Hello, world!"))
The best I managed was to get FORMAT to return the given string (the same thing PRINT does):
Code: Select all
(format nil "Hello, world!"))
Code: Select all
defun hello-world ()
(format nil "Hello, world!")
(print "F")
"G")