* bug#18646: procedure-name bug
@ 2014-10-06 19:04 Marko Rauhamaa
2016-06-22 8:19 ` Andy Wingo
0 siblings, 1 reply; 2+ messages in thread
From: Marko Rauhamaa @ 2014-10-06 19:04 UTC (permalink / raw)
To: 18646
Consider this program (guile-2.0.11 under Fedora 20):
===begin test.scm=======================================================
(define (hello) #f)
(format #t "~S\n" (procedure-name hello))
(define (xyz)
(define (hello) #f)
(format #t "~S\n" (procedure-name hello)))
(xyz)
===end test.scm=========================================================
If I run:
$ guile --no-auto-compile test.scm
hello
#f
$ guile --no-auto-compile test.scm
hello
#f
$ guile test.scm
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
[...]
hello
hello
$ guile test.scm
hello
hello
$ guile --no-auto-compile test.scm
hello
hello
Marko
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#18646: procedure-name bug
2014-10-06 19:04 bug#18646: procedure-name bug Marko Rauhamaa
@ 2016-06-22 8:19 ` Andy Wingo
0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2016-06-22 8:19 UTC (permalink / raw)
To: Marko Rauhamaa; +Cc: 18646-done
Hi,
Thanks for the report.
For what it's worth this is fixed in Guile master (2.1.x, will be 2.2,
Real Soon Now).
It's a little hard to fix in 2.0 though. We would have to rewrite some
pieces of the evaluator and the "memoizer", a part of Guile's
interpreter. (Guile 2.2 already has these rewrites but it can't be
ported back.) I don't think I will have time to do this, sadly.
I am closing this one based on the guess that I don't think we will get
to this in 2.0, though I would be happy to accept a fix if someone found
a way to do it :) Please re-open or file a new bug if you or someone
you know will be able to work on a fix for 2.0.
Andy
On Mon 06 Oct 2014 21:04, Marko Rauhamaa <marko@pacujo.net> writes:
> Consider this program (guile-2.0.11 under Fedora 20):
>
> ===begin test.scm=======================================================
> (define (hello) #f)
> (format #t "~S\n" (procedure-name hello))
>
> (define (xyz)
> (define (hello) #f)
> (format #t "~S\n" (procedure-name hello)))
>
> (xyz)
> ===end test.scm=========================================================
>
> If I run:
>
> $ guile --no-auto-compile test.scm
> hello
> #f
> $ guile --no-auto-compile test.scm
> hello
> #f
> $ guile test.scm
> ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
> ;;; or pass the --no-auto-compile argument to disable.
> [...]
> hello
> hello
> $ guile test.scm
> hello
> hello
> $ guile --no-auto-compile test.scm
> hello
> hello
>
>
> Marko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-22 8:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-06 19:04 bug#18646: procedure-name bug Marko Rauhamaa
2016-06-22 8:19 ` Andy Wingo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).