From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jonathan Wilson Newsgroups: gmane.lisp.guile.user Subject: Re: values->list elements Date: Tue, 13 Jun 2006 14:02:54 -0500 Message-ID: <448F0BDE.2050708@fastmail.fm> References: <448E12B1.8070709@fastmail.fm> <448EF3EF.7010006@freemail.hu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1150225399 10418 80.91.229.2 (13 Jun 2006 19:03:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Jun 2006 19:03:19 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jun 13 21:03:17 2006 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FqEAN-0000TQ-Nw for guile-user@m.gmane.org; Tue, 13 Jun 2006 21:03:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FqEAM-0002JY-Jc for guile-user@m.gmane.org; Tue, 13 Jun 2006 15:03:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FqEAH-0002J2-Ao for guile-user@gnu.org; Tue, 13 Jun 2006 15:03:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FqEAF-0002Il-V8 for guile-user@gnu.org; Tue, 13 Jun 2006 15:03:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FqEAF-0002Ii-Kk for guile-user@gnu.org; Tue, 13 Jun 2006 15:02:59 -0400 Original-Received: from [131.225.111.12] (helo=mailgw2.fnal.gov) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FqEJF-0000b8-OW for guile-user@gnu.org; Tue, 13 Jun 2006 15:12:18 -0400 Original-Received: from mailav1.fnal.gov (mailav1.fnal.gov [131.225.111.18]) by mailgw2.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) with SMTP id <0J0T00LTHB74AU@mailgw2.fnal.gov> for guile-user@gnu.org; Tue, 13 Jun 2006 14:02:58 -0500 (CDT) Original-Received: from mailgw1.fnal.gov ([131.225.111.11]) by mailav1.fnal.gov (SAVSMTP 3.1.7.47) with SMTP id M2006061314025825788 for ; Tue, 13 Jun 2006 14:02:58 -0500 Original-Received: from conversion-daemon.mailgw1.fnal.gov by mailgw1.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) id <0J0T00A01BJ2XO@mailgw1.fnal.gov> (original mail from j85wilson@fastmail.fm) for guile-user@gnu.org; Tue, 13 Jun 2006 14:02:58 -0500 (CDT) Original-Received: from [131.225.232.43] (nbay01.fnal.gov [131.225.232.43]) by mailgw1.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) with ESMTPA id <0J0T00MKZBKUER@mailgw1.fnal.gov> for guile-user@gnu.org; Tue, 13 Jun 2006 14:02:55 -0500 (CDT) In-reply-to: <448EF3EF.7010006@freemail.hu> Original-To: guile-user@gnu.org User-Agent: Thunderbird 1.5.0.4 (X11/20060516) 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:5358 Archived-At: Hi szgyg, szgyg wrote: > No, this is impossible without redefining +. A macro produces 1 sexp, > not more. > This is exactly what I am getting at. values does return more than 1 sexp, but the mechanisms for using that are clumsy and painful. It seems that if values returns multiple s-expressions, then they should be treated as multiple s-expressions. In between a set of parentheses, N s-expressions are usually treated as N elements of a list. Why should values be any different? (list 0 (values 1 2) 3) ==> (0 # 3) This is strange. If we had (list 0 (values 1 2) 3) ==> (0 1 2 3) Then multiple values would actually be useful. Regards, Jon _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user