2012/1/16 Marc Feeley feeley@iro.umontreal.ca:
I'm curious... what happens in gauche, bigloo and chicken when file x.scm is compiled? What is the behaviour when you execute the compiled file? My guess is that the semantics of the compiler and interpreter are inconsistent on those Scheme implementations.
I wasn't aware of this but you are right. Chicken fails during execution:
$ csc x.scm $ ./x x
Error: unbound variable: y
And Bigloo fails during compilation:
$ bigloo x-bigloo.scm
File "x-bigloo.scm", line 10, character 106: #(y) #^ *** ERROR:toplevel-init Unbound variable -- y 1 error occured, ending ...
Gauche does not compile to binaries.