Re: *current-language*

2012-01-07 Thread Ludovic Courtès
Hi, Andy Wingo skribis: > Guile's REPL does do that, yes. I think that Noah's proposal was to pun > the ,language command so that in a file, instead of > >#!lang r5rs >(eval '(+ 1 2) (scheme-report-environment 5)) > > you could have > >,language r5rs >(eval '(+ 1 2) (scheme-rep

Re: *current-language*

2012-01-06 Thread Eli Barzilay
20 minutes ago, Andy Wingo wrote: > Guile's REPL does do that, yes. I think that Noah's proposal was to pun > the ,language command so that in a file, instead of > >#!lang r5rs >(eval '(+ 1 2) (scheme-report-environment 5)) > > you could have > >,language r5rs >(eval '(+ 1 2) (

Re: *current-language*

2012-01-06 Thread Andy Wingo
On Sat 07 Jan 2012 02:56, Eli Barzilay writes: > FWIW, that's true -- and a reason that I plan to change what xrepl > (our command-line thing which I added to Racket recently) so that it > intercepts any line that starts with a "," which means that it would > work no matter what the actual langua

Re: *current-language*

2012-01-06 Thread Eli Barzilay
An hour and a half ago, e...@barzilay.org wrote: > > On Tue 06 Dec 2011 01:36, Noah Lavine writes: > > > And about the directives, what should they be? ',language' is what > > we used to use at the REPL, and I was about to write an email > > arguing for that, until I realized that there is one b

Re: *current-language*

2012-01-06 Thread Andy Wingo
On Tue 06 Dec 2011 01:36, Noah Lavine writes: >> I guess in general I'd prefer something like Racket's #!lang directives, >> though I'm not opposed to this approach.  Dunno! > > How about using language directives when available, and trying to > guess the language when not? I'm fine with this, F

Re: *current-language*

2011-12-05 Thread Noah Lavine
> I guess in general I'd prefer something like Racket's #!lang directives, > though I'm not opposed to this approach.  Dunno! How about using language directives when available, and trying to guess the language when not? And about the directives, what should they be? ',language' is what we used t

Re: *current-language*

2011-12-05 Thread Andy Wingo
Hello June! On Sun 12 Jun 2011 03:24, BT Templeton writes: > What is `*current-language*' supposed to be used for? It is supposed to be a default language for the compiler and other things that are interested in languages. > I see that it's > set by `(@ (ice-9 eval-string)

Re: *current-language*

2011-07-08 Thread BT Templeton
BT Templeton writes: > What is `*current-language*' supposed to be used for? I see that it's > set by `(@ (ice-9 eval-string) read-and-eval)' and by `(@ (system base > compile) read-and-compile)', but not by the REPL. So calling > `primitive-load-path' on

*current-language*

2011-06-11 Thread BT Templeton
What is `*current-language*' supposed to be used for? I see that it's set by `(@ (ice-9 eval-string) read-and-eval)' and by `(@ (system base compile) read-and-compile)', but not by the REPL. So calling `primitive-load-path' on a Scheme file from a REPL for another langua