On Apr 18, 2009, at 11:33 AM, Michele Simionato wrote:
So there is a different behavior. Who is right?
Both! R6RS does not say anything about how many times an imported
library is visited/invoked. It can be 0, 1, or more for reason or no
reason.
Here's something that you may find interesting.
(library (T0) (export) (import (rnrs)) (display "T0\n"))
(library (T1) (export) (import (for (T0) run expand)))
(library (T2) (export) (import (for (T1) run expand)))
(library (T3) (export) (import (for (T2) run expand)))
#!r6rs
(import (T3))
How many times does T0 get printed under Ikarus, Ypsilon, Larceny,
and PLT when you run that script? 0, 1, and more!
Aziz,,,