From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.user,gmane.lisp.guile.bugs Subject: Re: [critical bug] The set! doesn't work in indirect reference Date: Thu, 19 Sep 2024 11:34:17 +0900 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12843"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bug-guile@gnu.org, Guile User To: "Thompson, David" Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Thu Sep 19 04:35:13 2024 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 1sr70i-0003BE-T0 for guile-user@m.gmane-mx.org; Thu, 19 Sep 2024 04:35:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr708-0006q8-0f; Wed, 18 Sep 2024 22:34:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr706-0006pz-ER; Wed, 18 Sep 2024 22:34:34 -0400 Original-Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sr704-0001X5-MO; Wed, 18 Sep 2024 22:34:34 -0400 Original-Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-7db4c1a54easo189726a12.1; Wed, 18 Sep 2024 19:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726713271; x=1727318071; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iUoIYn1tDVYMxF2ExMA9mJF1xC2QguiRvXGcpzkx28E=; b=S33rZA/RSCh0OYJNrXMDcNpGXGRgMcxLIyIeLFbZx8HGyKgtEIq3aOIBbIagMvNT7r r+14LxhfI+Tun9zBL4ZjCgMAqVdztukvyVMmROPksMp7VNxpoLb6zVAYvhecq047yPqc kOv11WcQTTvphahR0JgR/DYoWZdAA0tIqdEhViayE3OTcwCtRtCvnaqDRdxxqGvfKYyp os/rm7mm5MqHciTX6iyeFewMDszmVdFNwfGc1ojV3bwR9SPwSanMTV/jMkf3Vv2hQ+f/ ndmNdq4llgtG4XAEBCLAlQWRGU7TLt1omWqTSuDGt3KQDbTvFM9ANufvBXykIduhLF9m Y9Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726713271; x=1727318071; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iUoIYn1tDVYMxF2ExMA9mJF1xC2QguiRvXGcpzkx28E=; b=p+K0dcCed5KTr5GMpihPXHX2NQPDxOj6zmZGsldzNPZOwcwffG+NjYNGEUniXY9mxx MsiRLVeKllL8KsKiEXr6sR1QMSdOsNsUpOQ88F2aj4pNkyeYveC6COtVEtOIr3EXm//i xvAOHCFZT8S/xtewSXu2scsxd9bDSeGc36VgZ6DZVUP+UGy8YzC54vp21EGMcJVDBFRH 16B5ef1ONkFc1n5+1+otkGCqv3vXlR9+zDy491d+26DvdR5oxL6pwewgEs5lPafZsu/W sSoA6c6/4CmZssLPNHmyLF2bbTvz2VbCzrmTd6/WOfsfzC/rKeZ1nu7Xfb/QtJaHa6Pd dasQ== X-Forwarded-Encrypted: i=1; AJvYcCXECNmXvp0tvj5yXMCP4ojw3Nbhyj+BStR50E0rOtwxclscJbWDwDiFyvdZ5BnXxIddF+c9qFBXoS9Y@gnu.org X-Gm-Message-State: AOJu0Yy5LrwN5Evj4RP+TUwcPrgWFAlNqywztOKIS5ZMy7I+ap2pNfFK WY2l8BbTwpAIKeCWeVqpuQYAMCjb4T5JfciUEWqTCFLD5mBzOOaspWwz7FZ3aN/e2Q3dLeZZIjs mf3alE2ePKpHtCVp1bcntVhpEGN4= X-Google-Smtp-Source: AGHT+IGmrCjdx3Q9lZODSHnGsj0ZPjxWfbOsWqDhj4+uo71WjC6kZJlE/w64J9tjmgMA4wtRBzuPy79dEbrmFPaj54o= X-Received: by 2002:a05:6a21:3982:b0:1cf:2438:c9e3 with SMTP id adf61e73a8af0-1cf75ec5c7cmr33789303637.16.1726713270550; Wed, 18 Sep 2024 19:34:30 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=nalaginrut@gmail.com; helo=mail-pg1-x52f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19813 gmane.lisp.guile.bugs:10982 Archived-At: Thanks for the reply! I've taken a look at https://www.gnu.org/software/guile/manual/html_node/Declarative-Modules.htm= l It's related to #:declarative? Thanks again! Best regards. On Wed, Sep 18, 2024 at 11:50=E2=80=AFPM Thompson, David wrote: > On Wed, Sep 18, 2024 at 10:38=E2=80=AFAM Nala Ginrut wrote: > > > > The result is: > > ;;; (before #f) > > ;;; (after #f) > > > > The expected result should be: > > ;; (before #f) > > ;; (after 123) > > I don't think this is a bug. Both modules are declarative (the > default). 'global' from module (aaa) is presumably being inlined into > the 'pk' calls in module (bbb). If you mark module (bbb) as > '#:declarative? #f' then you get your expected result. > > Hope this helps, > > - Dave >