From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailtransmit04.runbox.com (mailtransmit04.runbox.com [IPv6:2a0c:5a00:149::25]) by sourceware.org (Postfix) with ESMTPS id 9C3813858D28 for ; Wed, 1 Nov 2023 14:55:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9C3813858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bothner.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bothner.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9C3813858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a0c:5a00:149::25 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698850556; cv=none; b=RVsnnGNi8SqAwV6rkWNwEXwbLvTcFo4DL0yBAZN3yBBa1Bg3g28fl4adSyUhubcxDm0VUVmgUJ4EbU1RN7JlQPhgjwe9BzaNrrkO+PLy44wBFDJuOtnwrzpBwKThJ9lqzOIjwonmgv6uZyojWit4EX3eS2HM13Ypp7EZke3iN/g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698850556; c=relaxed/simple; bh=gU5niGfPSxkH3omWpj6lmaanaOJxugsPSmcVt3DSu30=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=Tj14oaoFU0iLMmvupfApeP9OPINFb94CdNJ9pY3fzwm5jCpTJwHQvQCxQpJbMD3f1MScYjk2xT4fGcLIpZPiVqZTZzvq4lWzExxZoqj+hDrXg7D2KgTCUXOVz1eY6jpSuPGOhYBI93iICpdefdV8el2NRV/cGfBYVNHOMN/0t3I= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1qyCdE-002XMz-Fz; Wed, 01 Nov 2023 15:55:44 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bothner.com ; s=selector1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID; bh=2rqek/5NGephXCNlJP3J1RG6ImAihJfTAmby7GBmhgQ=; b=XplIAZ8aU0X9frfyD9/+Kg1Kcx qHs08AIJ5anLxRT9r24++28GON1xH5UeTHgqRVD2WKuxSODwtaF0hIaa08o2KP9xvw60p9xdH6rLO mhyjLyJUsb/FvZ1zwITyhHIltTAlTs7NzX0luNjcJdMhADQmKVF9MAAKlMMnzrTFoIpqCOeLvxSW/ cFVwL7BEjozHgi9eWho9IxuwEVpLfQNuJ/WttZQJFAnnwdeHHh2mIJIEiQ8/TSWVGy2GdOir0PhDu LMW0N2BIVWYmmLZefaFVakvOhjC8J+FKNxTA4Q8DLAZPxO0f2/4fRMkwB9Bfx3WZXm+lildz1llwL L5TyFx7Q==; Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1qyCdE-00021V-09; Wed, 01 Nov 2023 15:55:44 +0100 Received: by submission03.runbox with esmtpsa [Authenticated ID (524175)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1qyCcy-00CUKB-KB; Wed, 01 Nov 2023 15:55:28 +0100 Message-ID: <37e472bc-a5d0-44f2-adb2-688870134b17@bothner.com> Date: Wed, 1 Nov 2023 07:55:18 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: unbound location: * Content-Language: en-US To: Damien Mattei , kawa mailing list References: From: Per Bothner In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 11/1/23 05:22, Damien Mattei via Kawa wrote: > here is a counter example: > > ;; test-define.scm > > (module-name test-define) > > (export *) > > (display *) (newline) > > (define * +) > > (display *) (newline) > > ;; main-test-define.scm > > (require test-define) > > (define rv (* 2 3)) > (display rv) (newline) > > #|kawa:1|# (load > "/Users/mattei/Dropbox/git/Scheme-PLUS-for-Kawa/main-test-define.scm") > # > # > 5 > > but i do not quite understand , first display shoud have display # > but no it displays # 'define' is not an assignment. If there is a define in a module, that is the definition - any other definition is not visible. Now in some cases if you try to reference a definition before it has been given a value, you might get an error or some kind of null/undefined value. However, it this particular case it seems to work. If you want the sort of dynamic definition you're expecting, you can try define-variable. -- --Per Bothner per@bothner.com http://per.bothner.com/