From ... Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!ra.nrl.navy.mil!dca6-feed2.news.algx.net!allegiance!newsfeed1.cidera.com!Cidera!news-hub.cableinet.net!blueyonder!kibo.news.demon.net!demon!newsfeed.belnet.be!news.belnet.be!news.brutele.be!nmaster.kpnqwest.net!nnum.kpnqwest.net!EU.net!nreader1.kpnqwest.net.POSTED!not-for-mail Newsgroups: comp.lang.lisp Subject: Re: Variable as first argument in format. References: <6278687.0205250120.54c9c9da@posting.google.com> <3231311821535318@naggum.net> <3CEF921C.47BD5008@dls.net> Mail-Copies-To: never From: Erik Naggum Message-ID: <3231333527541173@naggum.net> Organization: Naggum Software, Oslo, Norway Lines: 39 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 25 May 2002 16:38:56 GMT X-Complaints-To: newsmaster@KPNQwest.no X-Trace: nreader1.kpnqwest.net 1022344736 193.71.199.50 (Sat, 25 May 2002 18:38:56 MET DST) NNTP-Posting-Date: Sat, 25 May 2002 18:38:56 MET DST Xref: archiver1.google.com comp.lang.lisp:33893 * Erik Naggum > t is a designator for a stream so you do not have to write > *standard-output* out in full. * "Paul F. Dietz" | Does the output stream designator T refer to *terminal-io*? Note that it is not an output stream designator. (The standard says "nil, t, a stream, or a string with a fill pointer".) t designates just what I said, *standard-output*. | The documentation in the CLHS for FORMAT is unclear, I disagree, but it seems that you bring with you assumptions from prior successes in reading of the standard. This should not be discouraged outright, but watching for clues that you must look closer is just as important. Note that the Affected-by list for format does not include *terminal-io*, but does include *standard-output*. This should be the all-important clue. It may have been useful if the standard said so in the entry on format itself, but since format is covered elsewhere, the no-redundancy rule excludes redundant and superfluous repetition of previously stated requirements. It does say "See section 22.3 on Formatted Output", however. (In case that is too hard, the pertinent sentence is: "If destination is t, the output is sent to standard output.") | but for functions like WRITE this is the case. For functions that accept an output stream designator (look it up) in their specification, it is quite trut that nil means *standard-output*, and t means *terminal-io*, but again, please note that format does not use an output stream designator and that nil has a _very_ different meaning than it has for write. -- In a fight against something, the fight has value, victory has none. In a fight for something, the fight is a loss, victory merely relief. 70 percent of American adults do not understand the scientific process.