On Monday, November 30, 2015 at 10:52:05 AM UTC-5, Asumu Takikawa wrote:
> When you use a REPL, like if you launch racket at the command-line, you are
> using the top-level:
> 
>   Welcome to Racket v6.3.0.6.
>   -> (begin-for-syntax (displayln (syntax-local-context)))
>   top-level
> 
> (or if you're in the interactions area in DrRacket)
> 
> You can also be in the top-level if you use the "#lang racket/load" language.
> Or if you load a file (`racket -f <whatever>.rktl`).
> 
> Cheers,
> Asumu

Thank you. Follow-up question: When I run test.rkt:

#lang racket/load
(begin-for-syntax (displayln (syntax-local-context)))

from the command line, it prints "top-level" just as you say. Then I changed 
the first line to "#lang racket" and ran it, expecting to see "module", but 
instead I get "top-level" again. Why is that?

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to