Subject: bug#13865: redefinition of +

From: Andy Wingo <[email-masked]>
Date: Thu, 07 Mar 2013 22:39:05 +0100

On Mon 04 Mar 2013 15:24, Ian Price <[email-masked]> writes:

> Er, screw the repl, but it happens in a script as well.
>
> (define (foo) (+ 1 1))
> (define (+ a b) (- a b))
> (display (foo))
> (display (+ 1 1))
> (newline)
>
> $ guile -s /tmp/file1.scm
> ;;; note: source file /tmp/file1.scm
> ;;;       newer than compiled /home/ian/.cache/guile/ccache/2.2-LE-4-3.1/tmp/file1.scm.go
> ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
> ;;;       or pass the --no-auto-compile argument to disable.
> ;;; compiling /tmp/file1.scm
> ;;; compiled /home/ian/.cache/guile/ccache/2.2-LE-4-3.1/tmp/file1.scm.go
> 22

I see you are on master.  Is this a problem only in master?

    $ ~/src/guile-master/meta/guile /tmp/foo.scm 
    ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
    ;;;       or pass the --no-auto-compile argument to disable.
    ;;; compiling /tmp/foo.scm
    ;;; compiled /home/wingo/src/guile-master/cache/guile/ccache/2.2-LE-8-3.1/tmp/foo.scm.go
    22
    $ ~/src/guile/meta/guile /tmp/foo.scm 
    ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
    ;;;       or pass the --no-auto-compile argument to disable.
    ;;; compiling /tmp/foo.scm
    ;;; compiled /home/wingo/src/guile/cache/guile/ccache/2.0-LE-8-2.0/tmp/foo.scm.go
    00

Andy
-- 
http://wingolog.org/