From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by sourceware.org (Postfix) with ESMTPS id CF0C23857804 for ; Mon, 30 Nov 2020 08:13:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CF0C23857804 Received: by mail-lf1-x129.google.com with SMTP id s27so19788915lfp.5 for ; Mon, 30 Nov 2020 00:13:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nuQWIiQhAfOQ2pXwIcYJw8fdRSWKwJpOWgcvWwDlSU8=; b=MCn/PO5MbrhDkG8YbNRTMisnpbh7CbCHQawigOh0PzybNQHXXdKnZts4xCHZ5tRJcg DvvlVfK3Z+E9b5y0GZ7NJJUxciZNP6N0B1EwGQ2fUi7BNW3n+ryd+TnG7Fk4Jku6ZyW1 FsopfoMJcg4tiZ91LznvtwX3rEVT92VO+rhWp6hSzgyo7LmMdbNghY5+nCLUPAJY0tuK bfa+j5fshMTs3DxNTYSIRiap3hLsrheqtoinQ7Cal5uCfLQmHSGjQzLKkbGThhHpoUPx +EbkWKnyKf8j1ADBv3x2AJTe/SztHkppLp56JoNrMO8Xss2Lm7bVH5nST8Km81oUIpHx SORw== X-Gm-Message-State: AOAM531CArDjMMGbEvZVhnHgwMyQZ4KKGv/0LVlcOBgOBQfaCDFhouxK mbktMYG4LTW//lErwVwMvRzT40eLIpQ2DtEWt4GzcxK7yC0= X-Google-Smtp-Source: ABdhPJzVurSSF2rvGH8Q3znWpIlmD3dhdy7K0bdbCGeWOzEiUhJckbRfVmYLS9OcW6UOshd6B9zTF0CjrH3XADral6E= X-Received: by 2002:a19:f247:: with SMTP id d7mr7843638lfk.231.1606724005602; Mon, 30 Nov 2020 00:13:25 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Duncan Mak Date: Mon, 30 Nov 2020 03:12:49 -0500 Message-ID: Subject: Re: Using eval with environments and R7RS modules To: Per Bothner Cc: kawa mailing list X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: kawa@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Kawa mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2020 08:13:28 -0000 Thanks for the tip, Per. That did tie me over, but it doesn't feel like a great way to fix it. Would the right thing to do be to allow something like this? (environment '((scheme base) (my library) ...)) Duncan. On Mon, Nov 30, 2020 at 1:35 AM Per Bothner wrote: > On 11/29/20 10:21 PM, Duncan Mak via Kawa wrote: > > I'm trying to use EVAL in a R7RS module. I'm having trouble specifying > the > > environment that contains the current bindings > > > > I could either use (environment '(scheme base)), but I don't see my own > > functions, or (environment '(my library)) then I don't see something > basic > > like QUASIQUOTE. > > > > Is there a way for me to load multiple modules into the environment? > > One possible work-around is to have (my library) explicitly export > the symbols that you need from (scheme base). > -- > --Per Bothner > per@bothner.com http://per.bothner.com/ > -- Duncan.