[gambit-list] current-directory // problem on Windows 7

Mikael mikael.rcv at gmail.com
Wed Apr 3 16:04:26 EDT 2013


Hi Rob,

Welcome!

2013/4/3 <sales.creditscore at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20130403/085cf735/attachment.htm>


More information about the Gambit-list mailing list