[Larceny-users] Bug in format

Ray Racine ray.racine at comcast.net
Sun Nov 25 20:58:19 EST 2007


Semantics of 'format' says ...

; Copyright 1998 Lars T Hansen.
; 2002-09-28 / lth
;
; (format <port> <format-string> <arg> ...)
;
; <port> can be: an output port 
;                #t, denoting (current-output-port)
;                #f, denoting an output string (that is returned)

I glanced at the code in format.sch and its not apparent to me why this
is happening.  Any ideas??

Thanks,

Ray


[ray at corwin:src/scheme]$ rlwrap /code/larcenysvn/larceny_src/larceny
-path $PWD
(11-25 20:48)
Larceny v0.951 "First Safety" (Nov 14 2007 20:09:27,
precise:Linux:unified)
larceny.heap, built on Wed Nov 14 20:11:41 EST 2007

> (require 'format)
#t

> (format #t "hi ~a~%" "will")
hi will

> (format (current-output-port) "hi ~a~%" "will")
hi will

> (format #f "hi ~a~%" "will")


Error: format: not a port: #f
Entering debugger; type "?" for help.
debug> 





More information about the Larceny-users mailing list