From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans Aberg Newsgroups: gmane.lisp.guile.user Subject: Re: Using guile as an extension language for GNU make Date: Mon, 19 Sep 2011 21:41:58 +0200 Message-ID: <6D40BC91-6E4B-4799-BE29-BD2FF6EEEB84@telia.com> References: <1316304616.28907.118.camel@homebase> <87wrd5x404.fsf@ambire.localdomain> <1316374080.28907.163.camel@homebase> <87sjntwf29.fsf@ambire.localdomain> <1316445274.28907.174.camel@homebase> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1316467287 18449 80.91.229.12 (19 Sep 2011 21:21:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Sep 2011 21:21:27 +0000 (UTC) Cc: guile-user@gnu.org, Thien-Thi Nguyen To: psmith@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Sep 19 23:21:23 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R5lHD-0003Z3-Ty for guile-user@m.gmane.org; Mon, 19 Sep 2011 23:21:20 +0200 Original-Received: from localhost ([::1]:43412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5lHD-00073m-F9 for guile-user@m.gmane.org; Mon, 19 Sep 2011 17:21:19 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5lH9-00073h-UM for guile-user@gnu.org; Mon, 19 Sep 2011 17:21:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5lH8-0001Xb-Tu for guile-user@gnu.org; Mon, 19 Sep 2011 17:21:15 -0400 Original-Received: from smtp-out21.han.skanova.net ([195.67.226.208]:44442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5lH7-0001We-7p; Mon, 19 Sep 2011 17:21:13 -0400 Original-Received: from [10.0.1.2] (217.210.127.13) by smtp-out21.han.skanova.net (8.5.133) (authenticated as u26619196) id 4E52661200ACE7EC; Mon, 19 Sep 2011 21:41:59 +0200 In-Reply-To: <1316445274.28907.174.camel@homebase> X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.67.226.208 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8809 Archived-At: On 19 Sep 2011, at 17:14, Paul Smith wrote: > In make, everything is just words: broken up on whitespace. So for > example, maybe someone writes a Guile function that computes a complex > set of prerequisites for a target: >=20 > target: $(guile (...some Guile program...)) >=20 > The list of prerequisites is a whitespace-separated list of target > names. If the Guile program returned a string like "dep1 dep2 dep3" > then that would be fine with what I have. But it seems like it might = be > nice to allow the Guile script to return it as a list instead. Then = I'd > like to convert a list like '(dep1 dep2 dep3) into a string "dep1 dep2 > dep3" (not "(dep1 dep2 dep3)" as display would do). >=20 > But of course each element of the list could be something more = complex, > as well. So it gets tricky. How does 'make' store a list of words separated by strings internally? = If Guile converts its lists to such strings, the behavior is likely to = be fragile. It would better if 'make' converted those strings internally = to lists, and the Guile extension interaction with those lists. Hans