From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Neil Jerram" Newsgroups: gmane.lisp.guile.devel Subject: Re: define-syntax Date: Tue, 9 Dec 2008 21:17:28 +0000 Message-ID: <49dd78620812091317g1d025d74n72304f74071bebf3@mail.gmail.com> References: <3F715C67433E594B88B5ABEBBC6EE49F03E16E84@fe-mail47.de.bosch.com> <49dd78620812091220l449cfcffscb791f4590c0ad0@mail.gmail.com> <3F715C67433E594B88B5ABEBBC6EE49F03E16E88@fe-mail47.de.bosch.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1228857546 3633 80.91.229.12 (9 Dec 2008 21:19:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2008 21:19:06 +0000 (UTC) Cc: guile-devel@gnu.org To: "Pach Roman (DGS-EC/ESG3)" Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Dec 09 22:20:09 2008 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LA9zy-0002HF-OJ for guile-devel@m.gmane.org; Tue, 09 Dec 2008 22:20:07 +0100 Original-Received: from localhost ([127.0.0.1]:55101 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LA9yn-0007nX-LT for guile-devel@m.gmane.org; Tue, 09 Dec 2008 16:18:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LA9xr-0007UT-Ce for guile-devel@gnu.org; Tue, 09 Dec 2008 16:17:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LA9xp-0007Te-NP for guile-devel@gnu.org; Tue, 09 Dec 2008 16:17:55 -0500 Original-Received: from [199.232.76.173] (port=57339 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LA9xp-0007TV-Be for guile-devel@gnu.org; Tue, 09 Dec 2008 16:17:53 -0500 Original-Received: from mail-bw0-f20.google.com ([209.85.218.20]:55112) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LA9xo-0007YH-KU for guile-devel@gnu.org; Tue, 09 Dec 2008 16:17:53 -0500 Original-Received: by bwz13 with SMTP id 13so349198bwz.18 for ; Tue, 09 Dec 2008 13:17:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=zHePub6Q7SmNHfU39g0FjCcIgBSfWxJ1HSMq3SArFTw=; b=p/FZMbzY3y3JO5PQdoMMqXEhzCJlM9shQyzazht71IhTvqrbk32Yl+Ez1qQgz2h5Df 0p2S9FnZVdzA57gb9q6zrgy6Vsq5WAQA6OYB5jEJq0+5vMYGnL9VTBLT93MAfNguPbfy T/mbDZL+fUaI35veEbLhH1JHDw4UlabV4G4Ks= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=faKE1Ni5tNrcrJLkbdqD4DSuVMDq5LWW4DyjJgRJYFxhXB+hPRbf8c9+4T8Sm1447b LUIwT//c4dUCnGoIi4/P7pYoUypFHacn0+UNHak/UKUkAEg6FLs2KLGyL8ge3dYtkEIa wLzvtnwH4CPBygF4el4xpK9FWVq+qjw4Ml0jE= Original-Received: by 10.181.159.17 with SMTP id l17mr181492bko.14.1228857448411; Tue, 09 Dec 2008 13:17:28 -0800 (PST) Original-Received: by 10.181.59.9 with HTTP; Tue, 9 Dec 2008 13:17:28 -0800 (PST) In-Reply-To: <3F715C67433E594B88B5ABEBBC6EE49F03E16E88@fe-mail47.de.bosch.com> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:7912 Archived-At: 2008/12/9 Pach Roman (DGS-EC/ESG3) : > > take look at the results > > (1) dummy => (lambda () (string-concatenate (list "a" "b" "c"))) > (2) dummy => (lambda () "abc") > > in the case of define-syntax (1) the string "abc" will be computed at > the run time, > the macro version (2) hat produced the "abc" already by reading the > macro definition. Agreed. > I've expected both of the be computed during the reading of scheme > source. That's not what define-syntax is supposed to do, as I understand it. If you think we've got this wrong, can you point to something specific in R5RS? Regards, Neil