From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Changying Li Newsgroups: gmane.lisp.guile.user Subject: why format procedure produce error? Date: Wed, 11 Nov 2009 19:45:49 +0800 Message-ID: <87my2tz3ma.fsf@gmail.com> Reply-To: lchangying@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257940274 15040 80.91.229.12 (11 Nov 2009 11:51:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Nov 2009 11:51:14 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Nov 11 12:51:07 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N8Bj7-0002kv-LY for guile-user@m.gmane.org; Wed, 11 Nov 2009 12:51:05 +0100 Original-Received: from localhost ([127.0.0.1]:43841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8Bj6-0003gp-QT for guile-user@m.gmane.org; Wed, 11 Nov 2009 06:51:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8Bih-0003dm-HG for guile-user@gnu.org; Wed, 11 Nov 2009 06:50:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8Bic-0003VV-Es for guile-user@gnu.org; Wed, 11 Nov 2009 06:50:38 -0500 Original-Received: from [199.232.76.173] (port=53955 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8Bic-0003VP-4b for guile-user@gnu.org; Wed, 11 Nov 2009 06:50:34 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:52774) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N8Bib-0001uR-F7 for guile-user@gnu.org; Wed, 11 Nov 2009 06:50:33 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1N8BiY-0002Ry-2m for guile-user@gnu.org; Wed, 11 Nov 2009 12:50:30 +0100 Original-Received: from 60.211.211.146 ([60.211.211.146]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Nov 2009 12:50:30 +0100 Original-Received: from lchangying by 60.211.211.146 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Nov 2009 12:50:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 60.211.211.146 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:4j6emfef/lNlQUxDrdl8hcLkxQA= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7474 Archived-At: in the guile manual: -- Scheme Procedure: format dest fmt [args...] Write output specified by the FMT string to DEST. DEST can be an output port, `#t' for `current-output-port' (*note Default Ports::), a number for `current-error-port', or `#f' to return the output as a string. what's the meaning of NUMBER? I want to write things to error port, so I write (format 1 "hello") standard input:5:1: In procedure simple-format in expression (format 1 "hello"): standard input:5:1: Wrong type argument in position 1: 1 ABORT: (wrong-type-arg) it work when I use (format (current-error-port) "hello") Is there something wrong in the guile manual ? -- Thanks & Regards Changying Li