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 load mode: ``` ~@laptop$ racket Welcome to Racket v6 > (load "hi.rkt") > (run-some-commands x y z) ... ``` Or as a module ``` ~@laptop$ racket Welcome to Racket v6 > (require "bye.rkt") > (run-some-commands x y z) ... ``` Now the problem is when I want to run the command without loading a REPL. I follow this doc (http://docs.racket-lang.org/guide/racket.html), it works just fine if i use the load mode: ``` ~@laptop$ racket -f hi.rkt -e '(run-some-commands x y z)' ``` However, if i use the module mode, it says nothing, sometimes it says bye.rkt is undefined. ``` ~@laptop$ racket bye.rkt -e '(run-some-commands x y z)' ``` I'm very confused because Racket recommends to use module instead of load mode. Any help? Thank you, Chi -- 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 racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.