This program:

#lang scheme

(display (format "~a~n" '(scheme #,3)))
(format "~a~n" '(scheme #,3))
(printf "~a~n" '(scheme #,3))

Produces these results:

(scheme (unsyntax 3))
"(scheme (unsyntax 3))\n"
(scheme #,3)

which rather surprised me.  Why is `printf' behaving differently from `format'?
-- 
sam th
sa...@ccs.neu.edu
_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-dev

Reply via email to