From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Massimiliano Gubinelli Newsgroups: gmane.lisp.guile.user Subject: Re: confused about make-module and eval Date: Tue, 24 Mar 2020 10:27:35 +0100 Message-ID: <8E82266B-4015-4863-BB51-192F692F0E04@gmail.com> References: <20200324091658.GC9527@tuxteam.de> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="20764"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: tomas@tuxteam.de Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Mar 24 10:27:54 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jGfqj-0005HH-Vs for guile-user@m.gmane-mx.org; Tue, 24 Mar 2020 10:27:53 +0100 Original-Received: from localhost ([::1]:44888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGfqi-0001Eh-H9 for guile-user@m.gmane-mx.org; Tue, 24 Mar 2020 05:27:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45080) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGfqW-0001EY-GD for guile-user@gnu.org; Tue, 24 Mar 2020 05:27:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jGfqV-0002jO-ID for guile-user@gnu.org; Tue, 24 Mar 2020 05:27:40 -0400 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:41834) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jGfqV-0002iv-Af for guile-user@gnu.org; Tue, 24 Mar 2020 05:27:39 -0400 Original-Received: by mail-wr1-x429.google.com with SMTP id h9so20473199wrc.8 for ; Tue, 24 Mar 2020 02:27:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=VOSvYDEtXsqCi8nouTCqyW0YlQghi/8x4P2s22WaxrU=; b=eyrXWfHpZkZifjCuBhgfpaUZWmenCghxagjMkAaEhna//p8btPcsFQ0Z3+JraLkaYA ddl/P3lBfxXU0DCwnMK+dFiWl+WWhGKuBcHa8+eNI9faaeCerOPdKCuTT/j5/aD5ePXS vF0F1P+O6K+0xMQ/w7Fn6e5LfSEoacgEjM/JhZTOaGuPSm3V5VGO5PPTx+2Wve243JBr e4u9gE2b3lqbDZkAKKaOoSzv2MI/UM0B7gUyNCNZG0Hdx5mkdb5L00Zg0XuEtDOSqKel qXO2wnqDojgTNPfAPR8qV+semA8k7umpTr5CYDDX+tfAsMSUQcfRJsQbyxqbsOe7zVX5 2QvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=VOSvYDEtXsqCi8nouTCqyW0YlQghi/8x4P2s22WaxrU=; b=ljfEZQlGC1JIRwG9wyXaDA6d7mDc9alZNSij1qEHf2md2fTsoVD/+PP2FfOpEiLUfT C6SUeGPOs96QHi2+v1NleacNxCas24jcFeZlMF03rmNPBiyY95va/PHqugLdk9h7ZOSS 1XgvB+q71LpWaujNYBoflznDrgaxtwxhvaHHIomPOIb2nDknJz/21nyQX2HObD0UrY35 lsCkhTyxXn9TLmN0PFXsE5NuwZzzFrged02hRXlNqssA0eeD9DxqK5wRorS965o2yDRR gFhAvXT9JdrNlZwFFOxLgADztDWcuTmMT1BgzHvwMprp31IcsBNcvXV1NhbwzU72TcwZ yj7Q== X-Gm-Message-State: ANhLgQ1qhOx0ou/0OERHEG1HJDY5cE7XfLECTbo5mtviCURBChVcYG4Z T3NnfcQGe6V21DrRiWb+Jtg= X-Google-Smtp-Source: ADFU+vuXPHtV5qIzFAZZ6v8XGYVcrY4k8ZEa92uYvQGM/9iNl9VQsqcUujzDMQMGPkZ/lzJK72/UKg== X-Received: by 2002:a05:6000:111:: with SMTP id o17mr35200562wrx.111.1585042057770; Tue, 24 Mar 2020 02:27:37 -0700 (PDT) Original-Received: from [192.168.0.18] ([78.192.22.137]) by smtp.gmail.com with ESMTPSA id i1sm27103035wrq.89.2020.03.24.02.27.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Mar 2020 02:27:37 -0700 (PDT) In-Reply-To: <20200324091658.GC9527@tuxteam.de> X-Mailer: Apple Mail (2.3608.60.0.2.5) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::429 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16344 Archived-At: you can look into ice-9/boot-9.scm to see how modules are populated. I'm = not sure now how to do it right. For example you could use=20 export-all! use-module! etc... Best max > On 24. Mar 2020, at 10:16, = wrote: >=20 > On 24. Mar 2020, at 01:32, Matt Wette wrote: >=20 >> I expect this to work, but it does not. Any anyone elaborate? >> What is the minimum module that can make this work? = (make-fresh-use-module)? >=20 > On Tue, Mar 24, 2020 at 01:35:51AM +0100, Massimiliano Gubinelli = wrote: >> I think a fresh module do not have any binding. So 'lambda is not = defined. You would have to create bindings inside the module, maybe you = could just import the-scm-module . >=20 > Yes, I think that is it. The documentation is fairly sparse; > There is something in "6.20.12 Environments" [1], and via > R5RS environments (ice-9 r5rs) you have access to some kinda > standard environments (scheme-report-environment, etc.) >=20 > As you already noticed (in the context of NYACC) , this topic > is is also somewhat coufusing and fascinating for me :-) >=20 > Cheers > --tom=C3=A1s