[Scheme-reports] return value(s) of load Andy Wingo (09 Jan 2012 15:04 UTC)
Re: [Scheme-reports] return value(s) of load Alex Shinn (09 Jan 2012 22:17 UTC)
Re: [Scheme-reports] return value(s) of load John Cowan (09 Jan 2012 22:57 UTC)

Re: [Scheme-reports] return value(s) of load John Cowan 09 Jan 2012 22:56 UTC

Alex Shinn scripsit:

> To make an exception for load we'd need to know for what
> implementations it currently returns the last value(s),

Asked to load a file containing "(values 1 2 3)", Racket, Scheme48/scsh,
Guile, RScheme return 3 values.  Chicken, Kawa, SISC, Chibi, Chez,
Ikarus/Vicare, Larceny, Ypsilon, SigScheme return their standard
undefined-value object.  Gauche returns #t 2 3; Bigloo returns 1 0.
MIT, Gambit, XLisp return various objects.  SCM doesn't like multiple
values at the top level.  Mosh, IronScheme, KSI, TinyScheme, Scheme 9,
Elk, UMB, VX, Oaklisp, Owl Lisp either don't support values or don't
support load.

> and if there is any code that depends on this.

I certainly doubt it.

--
By Elbereth and Luthien the Fair, you shall     cowan@ccil.org
have neither the Ring nor me!  --Frodo          http://www.ccil.org/~cowan

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports