From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zelphir Kaltstahl Newsgroups: gmane.lisp.guile.user Subject: Re: Weird cache issue Date: Tue, 15 Mar 2022 22:44:16 +0000 Message-ID: <04cf44c4-5711-47ec-f472-2b9808f3dbcc@posteo.de> References: <857fc700-4ac5-fa7b-1306-cccda26f0d58@posteo.de> <0388e2345cc16f976bb2e3f9c54bf97cc8455a52.camel@telenet.be> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1980"; mail-complaints-to="usenet@ciao.gmane.io" To: Maxime Devos , Guile User Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Mar 15 23:44:35 2022 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 1nUFu7-0000Kd-Pi for guile-user@m.gmane-mx.org; Tue, 15 Mar 2022 23:44:35 +0100 Original-Received: from localhost ([::1]:48530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUFu6-0005By-FK for guile-user@m.gmane-mx.org; Tue, 15 Mar 2022 18:44:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUFtu-0005Bp-NS for guile-user@gnu.org; Tue, 15 Mar 2022 18:44:22 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:38587) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUFts-0001eo-Hv for guile-user@gnu.org; Tue, 15 Mar 2022 18:44:22 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D4FF7240105 for ; Tue, 15 Mar 2022 23:44:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1647384257; bh=y5LzTShVnKzPE3Ao0MPe8NsHpkcfN97jAHQ0+q1qvyg=; h=Date:Subject:To:From:From; b=fSuBwtjamMOUynpePpTqCpoWW+9gzxp+zQ+GFe6yYfH6PRosFFfkt8yqTPCvwnN2R gHP7JprPOoq97XfjPCBLqoHW+iBKRdnQCc/cRqAoWF6T7t9AHxbIUzinugnFJg5WBh J0Bp7EJNk2+faiZKcRa4g1TwObTf24h+Cu04UkFx4qlCsEwg5VhWEHD8Aj5xZESSnp Gi7JSdbuhwG1JwgR/IBpQbf3B964SMd+wKnLJOad2dOhUHADuaEhQwtqo5pWk0En8I 5ecBNnfM+/hD8vuPcEin/qr8nY34kWaSRv+kBWU2EkGGFXCnkBGgp+0+ffiVXbZjj+ m+nweG1TYBDYA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KJ7kS6YCkz9rxG; Tue, 15 Mar 2022 23:44:16 +0100 (CET) Content-Language: en-US In-Reply-To: <0388e2345cc16f976bb2e3f9c54bf97cc8455a52.camel@telenet.be> Received-SPF: pass client-ip=185.67.36.66; envelope-from=zelphirkaltstahl@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 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:18214 Archived-At: Hi Maxime! On 3/15/22 20:10, Maxime Devos wrote: > Zelphir Kaltstahl schreef op di 15-03-2022 om 17:54 [+0000]: >> ~~~~013.scm~~~~ >> (library (fileio) >>    (export ) >>    (import >>     (except (rnrs base) let-values) >>     (only (guile) >>           lambda* λ >>           ;; printing >>           display >>           simple-format) >>     (fileio))) > Shouldn't the code below be put inside the library form? > While these imports might be available below as well due to > how 'library' is 'define-module' followed by some extra code > (see ice-9/r6rs-libraries.scm), it is not something you can > rely upon: > > ;; It would be nice to push the module that was current before the > ;; definition, and pop it after the library definition, but I > ;; actually can't see a way to do that. Helper procedures perhaps, > ;; around a fluid that is rebound in save-module-excursion? Patches > ;; welcome! > > Greetings, > Maxime. I did not know that! I might be using (library ...) wrong all along then. Thanks for the hint! Regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl