[plt-scheme] PLT MzScheme - How to use "--main"?

From: Márcio Faustino (m.faustino at gmail.com)
Date: Fri Dec 21 04:30:52 EST 2007


Can someone please explain me how to use MzScheme to run a Scheme program  
with the "--main" option?
For example, I have this program:
(define (main)
   (format "test"))

When I run it like this "mzscheme test.scm --main", I was expecting it to  
print "test", but it doesn't.
Am I missing something?

Márcio Faustino

Posted on the users mailing list.