[plt-scheme] mzscheme -tm- ?
I conjecture that this is not the desired behavior for mzscheme with
the "-tm" combination (load from a module, call the "main" function):
uccello:~/clements/financial clements$ cat > /tmp/foo.ss
#lang scheme/base
(provide main)
(define (main x) 3)
uccello:~/clements/financial clements$ mzscheme -tm- /tmp/foo.ss
compile: bad syntax; function application is not allowed, because no #
%app syntax transformer is bound in: (main)
Naturally, I can work around this by splitting it into a top-level-
style file that simply requires and calls the corresponding main in
the module with the specified args, but I'm confident that one of two
things is true here:
a) there's some useful way to use mzscheme -tm that I'm just not
aware of, or
b) this is not the desired behavior.
I'm betting on (b), but I'd be happy to be wrong.
John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2223 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20071212/7f08549c/attachment.p7s>