Never thought of just typing the function straight into the interpreter :-| Anyway this is what it produces.
"C:\MinGW\msys\1.0\local\Gambit-C\bin"
---- Marc Feeley feeley@iro.umontreal.ca wrote:
Can you start "gsi" and at the REPL type (current-directory) to see what is returned.
Marc
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Afficher les réponses par date
On 2013-04-03, at 3:23 PM, sales.creditscore@creditscore.co.nz wrote:
Never thought of just typing the function straight into the interpreter :-| Anyway this is what it produces.
"C:\MinGW\msys\1.0\local\Gambit-C\bin"
Apparently your browser is replacing the backslashes by forward slashes.
So perhaps this code would work better:
(<li> (<a> href: (string-append """ (current-directory) """) "Browse the web server's filesystem"))
In any case, it appears to be a quoting problem.
Marc
Hi Rob,
Welcome!
2013/4/3 sales.creditscore@creditscore.co.nz
Never thought of just typing the function straight into the interpreter :-| Anyway this is what it produces.
"C:\MinGW\msys\1.0\local\Gambit-C\bin"
That's the serialized form, for seeing a verbatim copy of the string content:
(print (current-directory) "\n")
C:\Program Files\Gambit-C\v4.6.6\bin\
..or in pieces..
(string->list (current-directory))
(#\C #: #\ #\P #\r #\o #\g #\r #\a #\m #\space #\F #\i #\l #\e #\s #\ #\G #\a #\m #\b #\i #\t #- #\C #\ #\v #\4 #. #\6 #. #\6 #\ #\b #\i #\n #\)
In the code in your previous email, you can leave object->string out as what you want right there is a verbatim copy of the string's content, and not what that procedure produces, which is a serialization though with a string as output rather than the console (as you showed an example of above) .
Brgds