Re: Problems with LOAD and latest build

2009-09-03 Thread Ludovic Courtès
Andy Wingo writes: > On Mon 31 Aug 2009 10:46, l...@gnu.org (Ludovic Courtès) writes: [...] >> Programs that want to rely on bare R5RS (e.g., SILex) have nothing else >> but `load' to have code in separate files. So I think the compiler >> should special-case top-level `load', `primitive-load'

Re: Problems with LOAD and latest build

2009-09-03 Thread Andy Wingo
On Mon 31 Aug 2009 10:46, l...@gnu.org (Ludovic Courtès) writes: > Hi, > > Andy Wingo writes: > >> Now, does this indicate a bug in Guile, or at least an undesirable >> behavior? > > Yes, I think so. > > Programs that want to rely on bare R5RS (e.g., SILex) have nothing else > but `load' to have

Re: Problems with LOAD and latest build

2009-08-31 Thread Ludovic Courtès
Hi, Andy Wingo writes: > Now, does this indicate a bug in Guile, or at least an undesirable > behavior? Yes, I think so. Programs that want to rely on bare R5RS (e.g., SILex) have nothing else but `load' to have code in separate files. So I think the compiler should special-case top-level `lo

Re: Problems with LOAD and latest build

2009-08-30 Thread Barry Fishman
Andy Wingo writes: > Thank you for the bug report, it was quite interesting. Thank you for your clear explanation, and your solutions are simple to implement. > When compiling tryme, what happens is that `(load "dotimes.scm")' gets > compiled into a load at runtime -- but the dotimes.scm isn't

Re: Problems with LOAD and latest build

2009-08-30 Thread Andy Wingo
Hi Barry, Thank you for the bug report, it was quite interesting. On Sat 29 Aug 2009 17:49, Barry Fishman writes: > #! /bin/sh > # -*- scheme -*- > exec guile -s "$0" $* > !# > > (load "dotimes.scm") > > (dotimes (indx 5) > (display indx) > (newline)) When compiling tryme, what happens is