From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julian Graham Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Compile in a fresh module by default Date: Tue, 13 Oct 2009 22:26:49 -0400 Message-ID: <2bc5f8210910131926w57224fb6t6231555585f59f51@mail.gmail.com> References: <87ws52i36r.fsf@gnu.org> <87ljk9i6d7.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1255487237 10119 80.91.229.12 (14 Oct 2009 02:27:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Oct 2009 02:27:17 +0000 (UTC) Cc: guile-devel@gnu.org To: =?ISO-8859-1?Q?Ludovic_Court=E8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Oct 14 04:27:06 2009 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 1MxtZw-0001k9-Um for guile-devel@m.gmane.org; Wed, 14 Oct 2009 04:27:05 +0200 Original-Received: from localhost ([127.0.0.1]:54585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxtZw-0000Fw-16 for guile-devel@m.gmane.org; Tue, 13 Oct 2009 22:27:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxtZp-0000FX-K3 for guile-devel@gnu.org; Tue, 13 Oct 2009 22:26:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxtZl-0000Eb-3u for guile-devel@gnu.org; Tue, 13 Oct 2009 22:26:57 -0400 Original-Received: from [199.232.76.173] (port=60275 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxtZk-0000EY-UW for guile-devel@gnu.org; Tue, 13 Oct 2009 22:26:52 -0400 Original-Received: from mail-ew0-f228.google.com ([209.85.219.228]:58210) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MxtZj-0000fC-GL; Tue, 13 Oct 2009 22:26:51 -0400 Original-Received: by ewy28 with SMTP id 28so17772737ewy.42 for ; Tue, 13 Oct 2009 19:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=jgw1z0GT3k5chLk/SxFd4ZFZbBD2yi67Gu7EEeUP+9I=; b=p1EMc+5ElHKAss7htw6tGkyNhUYBBe1c+WsBpUy8av/ly+d/qx9mO+jV5dTRqhN2Rp KanVdkIbADu4hQbk/aefJe583mPQoAIbhJ9WR1voSSoZ7bv8DwZvGEQ2uFlKaCNFLkPL mrT7XEJKbXuVrkeGel/cmFmoj6Zq3Q03BPTEQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=RMMV4Hfno3cDEJt13b7sFGOW+3jfNcDNWRYGfwJcV1PmAGvPvgc2uHTJTGYDvXxsjq gPaSl64UKoYOpRuYUEnPY9q8JP4ycygKZjfCiVGUYvkDspGU5BoubmmaOdyn5asF7FBX ejlftSfM7Y3K+oBAviZytZ5z1ohQMkLi086eQ= Original-Received: by 10.211.154.10 with SMTP id g10mr9540798ebo.49.1255487209063; Tue, 13 Oct 2009 19:26:49 -0700 (PDT) In-Reply-To: <87ljk9i6d7.fsf@gnu.org> 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:9483 Archived-At: Hi Ludovic, Naive question (and I realize I'm a bit late here): What if there are bindings in the current module that need to be present for expansion and compilation to succeed? I ask because I'm working on a macro that transforms R6RS library expressions, which contain nested `define' calls, into Guile modules. My code rewrites these defines as location declarations that get exported as part of a module interface (at least, in theory -- right now it just erases them). When I bind my `library' macro in the REPL after building from the current HEAD of master and then load and compile a source file containing an R6RS library form, I get a syncase error during compilation about defines in expression context; when I revert the effects of this patch, the error goes away. Regards, Julian 2009/9/20 Ludovic Court=E8s : > Hello! > > ludo@gnu.org (Ludovic Court=E8s) writes: > >> The attached patch makes `compile' and friends use fresh module rather >> than the current module as the default compile-time environment. > > I committed a slightly modified version in > 87c595c757b7db84ffdcfda96f736ab235e674a8.