On Sat, Apr 18, 2009 at 10:24 AM, Abdulaziz Ghuloum <[email protected]> wrote: > > On Apr 18, 2009, at 10:57 AM, Abdulaziz Ghuloum wrote: > >> [So, there are no side effects at import time, as the title says.] > > Let me clarify more. There is no part of an R6RS library that's designated > "import-time code", or code that's evaluated when a library is imported. > There is visit-time code and invoke-time code that are evaluated when a > library is visited or invoked. So, we either have a terminology mismatch > (very likely), or you're conflating two events that appear to be happening > at the same time but they're not. > > Aziz,,, >
I understand perfectly the difference between visiting/invoking a library. My issue is with the fact that "R6RS script mode" works differently in PLT and Ikarus and I would like to understand if there is a violation of the R6RS or if this is just a gray area. For instance if I write $ plt-r6rs --compile myscript.ss in PLT the library is just visited, non invoked and that's fine. But if I write $ plt-r6rs myscript.ss the library is invoked, even if I am not accessing any variable exported by the library. Ikarus instead in the same situation does not not invoke it. So there is a different behavior. Who is right?
