Re: [critical bug] The set! doesn't work in indirect reference

Nala Ginrut <[email protected]>
Newsgroups gmane.lisp.guile.user,gmane.lisp.guile.bugs
Message-ID <CAPjoZochg_WZGify5L1L4r4bzZ2Wq00TECPfEwLOSQC7iVgsLw@mail.gmail.com>
Thanks for the reply!
I've taken a look at
https://www.gnu.org/software/guile/manual/html_node/Declarative-Modules.html
It's related to #:declarative?

Thanks again!
Best regards.


On Wed, Sep 18, 2024 at 11:50 PM Thompson, David <[email protected]>
wrote:

> On Wed, Sep 18, 2024 at 10:38 AM Nala Ginrut <[email protected]> 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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.