Re: The return value of `load'

2012-01-09 Thread Andy Wingo
On Mon 01 Aug 2011 15:02, Panicz Maciej Godek writes: > (define x (load "2plus3.scm")) ; (i wish x was 5) I have fixed this to return the result(s) of evaluating the last expression in the file, or the unspecified value if the file has no forms. Previously there was differing behavior: primitiv

The return value of `load'

2011-08-01 Thread Panicz Maciej Godek
Hey, let's assume that I have two files. The first one contains a single sexp: 2plus3.scm: (+ 2 3) Now I would like to load that file, just like the `load' or `primitive-load' does, but I would like to have an access to the return value of the last expression from the file: (define x (load "2plus