[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Guile 2.0 interpretation vs compilation
From: |
Marko Rauhamaa |
Subject: |
Guile 2.0 interpretation vs compilation |
Date: |
Sun, 05 Oct 2014 14:03:30 +0300 |
Consider this program:
===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
# $ guile -v
guile (GNU Guile) 2.0.11
[...]
Is this a bug or expected behavior?
Marko
- Guile 2.0 interpretation vs compilation,
Marko Rauhamaa <=