[plt-scheme] Passing parameters to scheme executable- help?
PLT MzScheme: Language Manual, section 7.9.1.6 Loading:
(current-command-line-arguments [string-vector]) gets or sets a vector of strings representing command-line arguments. When a new vector of strings is provided to the parameter procedure, it is converted to an immutable vector of immutable strings. The stand-alone version of MzScheme (and MrEd) initializes the parameter to contain command-line arguments that are not processed directly by MzScheme and MrEd. (The same vector is also installed as the value of the argv global.) If command-line arguments are provided to MzScheme/MrEd as a byte strings, they are converted to strings using the current locale's encoding (see section 1.2.2).
Chongkai
----- Original Message -----
From: PzYcHx at aol.com
To: plt-scheme at list.cs.brown.edu
Cc: PzYcHx at aol.com
Sent: Saturday, July 22, 2006 4:06 PM
Subject: [plt-scheme] Passing parameters to scheme executable- help?
Hello, I am new to this forum so if this email is directed at the wrong people, then I am sorry. Anyway, I use the DrScheme IDE (v301) and sometimes make executables from it. Does anybody out there know how to pass parameters to these mzscheme executables on the command line? I noticed that the variable argv is automatically the empty vector #0(). How do I fill it?
Please be as detailed as you possible can if you answer- in case it helps you, I on MS Windows XP pro. I also use DrScheme v301 with the language set to mzscheme.
thanks
~ Mike