GNU bug report logs -
#63269
Guile compiler supresses initalization of autoloaded modules
Previous Next
To reply to this bug, email your comments to 63269 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#63269
; Package
guile
.
(Thu, 04 May 2023 15:06:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Владимир ВНИИАЭС <var-vniiaes <at> mail.ru>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Thu, 04 May 2023 15:06:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Guile compiler drives out part of initialization for autoloaded
modules (typically, statements in `side-effects only' form).
Please find below an example. Interpreter produces expected
result; compiler works fine when `define-public’ form is used
in autoloaded module for `f’ definition.
amaya <at> t460s:~/tmp/guile-test$ cat main.scm f.scm
(define-module (guile-test main) #:autoload (guile-test f) (f))
(define (main) (f))
(main)
(define-module (guile-test f) #:export (f))
(format (current-error-port) "*** module f initialized\n")
(define (f) (format #t "hello from f\n"))
amaya <at> t460s:~/tmp/guile-test$ guile -L .. main.scm
hello from f
amaya <at> t460s:~/tmp/guile-test$ cat main.scm | guile -L ..
GNU Guile 3.0.8
Copyright (C) 1995-2021 Free Software Foundation, Inc. [...]
*** module f initialized
$1 = #<directory (guile-test main) 7f83118763c0>
hello from f
$2 = #t
[Message part 2 (text/html, inline)]
This bug report was last modified 1 year and 238 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.