From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpout02-ext2.partage.renater.fr (smtpout02-ext2.partage.renater.fr [194.254.241.33]) by sourceware.org (Postfix) with ESMTP id D22EA383F86A for ; Mon, 30 Nov 2020 10:13:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D22EA383F86A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=oca.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=damien.mattei@oca.eu Received: from zmtaauth02.partage.renater.fr (zmtaauth02.partage.renater.fr [194.254.241.25]) by smtpout20.partage.renater.fr (Postfix) with ESMTP id 076DDC06B7 for ; Mon, 30 Nov 2020 11:13:18 +0100 (CET) Received: from zmtaauth02.partage.renater.fr (localhost [127.0.0.1]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTPS id 00C30A0184 for ; Mon, 30 Nov 2020 11:13:17 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTP id F01E5A036C for ; Mon, 30 Nov 2020 11:13:17 +0100 (CET) X-Virus-Scanned: amavisd-new at zmtaauth02.partage.renater.fr Received: from zmtaauth02.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth02.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0xJgu4r26lxy for ; Mon, 30 Nov 2020 11:13:17 +0100 (CET) Received: from 90.116.117.253 (unknown [194.254.241.250]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTPA id BA7E0A0369 for ; Mon, 30 Nov 2020 11:13:17 +0100 (CET) Reply-To: Damien.Mattei@unice.fr Subject: Re: Using eval with environments and R7RS modules To: kawa@sourceware.org References: From: Damien MATTEI Message-ID: <3c4fc600-110f-e1fe-4421-aeb91c8fab22@oca.eu> Date: Mon, 30 Nov 2020 11:13:17 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: 0 X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgedujedrudeitddgudefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutffgpfetvffgtfenuceurghilhhouhhtmecufedttdenucenucfjughrpehruffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomhepffgrmhhivghnucfotefvvffgkfcuoegurghmihgvnhdrmhgrthhtvghisehotggrrdgvuheqnecuggftrfgrthhtvghrnhepgfejvdelffffkeehjeejhedvgeevhedtieetffekffeftdelvddvudfgffejvdffnecukfhppeduleegrddvheegrddvgedurddvhedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelgedrvdehgedrvdeguddrvdehtddphhgvlhhopeeltddrudduiedruddujedrvdehfedpmhgrihhlfhhrohhmpeffrghmihgvnhcuofetvffvgffkuceouggrmhhivghnrdhmrghtthgvihesohgtrgdrvghuqedprhgtphhtthhopehkrgifrgesshhouhhrtggvfigrrhgvrdhorhhg Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_HELO_IP_MISMATCH, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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 10:13:23 -0000 hello, i rarely use EVAL but i recently wrote a function using eval inside and=20 i was surprised to see that the arguments of the function where not known from EVAL: (define (foo L) =C2=A0=C2=A0 (eval L (interaction-environment)) and i got an error like UNBOUND VARIABLE L but this not only in Kawa,it is in Scheme, i was in a R5RS , if there is=20 a way to know the current bindings from EVAL i will be happy to know it, because without this , i do not see any use for EVAL ,=20 having only the toplevel bindings is not enought for development. Damien Le 30/11/2020 =C3=A0 07:21, Duncan Mak via Kawa a =C3=A9crit=C2=A0: > Hello all, > > 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 ba= sic > like QUASIQUOTE. > > Is there a way for me to load multiple modules into the environment? > > Thanks! >