Dear Daniel,
I have blindly tried and so far these two things work for me:
1.
Add this to the end of the file (maybe module* main #f...)
```
(module+ main
(hello)
)
```
and then "racket -t foo.rkt" prints "Hello, world!".
2.
If you want to use "-e" (e.g. for testing) you need more binding
Dear Daniel,
thank you for your answer, I have a sample code that I describe the same
problem here in this thread (the last post of mine, you dont need to read the
whole thread) including what command in which nested module I want to call:
https://groups.google.com/forum/?hl=en-GB#!topic/racket
Hi,
I try to help and hope I do not mess things up. I found those start up
things a bit tricky as well.
The main question is: What is available when you want to eval with the
-e option? (more technically: what bindings does your current namespace
provide at that point?)
The concept of name
Hi everyone,
The situation is that I have a racket file with the same code but 2 version,
one in module and one in load mode.
```
hi.rkt is in load mode
```
```
bye.rkt is the same code but in module mode
#lang racket
(provide run-some-commands)
```
Both work just fine if I use a REPL.
The
4 matches
Mail list logo