Re: [racket-users] running racket command line, load mode works but module mode doesnt

2015-10-11 Thread Linh Chi Nguyen
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

Re: [racket-users] running racket command line, load mode works but module mode doesnt

2015-10-11 Thread Linh Chi Nguyen
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

Re: [racket-users] running racket command line, load mode works but module mode doesnt

2015-10-11 Thread Daniel Brunner
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

[racket-users] running racket command line, load mode works but module mode doesnt

2015-10-10 Thread Linh Chi Nguyen
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