Werner Heigl
2016-06-26 17:59:53 UTC
I ran into a similar issue last week. I did find that R5RS mode has some of this functionality. It also has the useful 'system' procedure.
Sent from my iPhone
Sent from my iPhone
Send Larceny-users mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.ccs.neu.edu/bin/listinfo/larceny-users
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Larceny-users digest..."
1. Request: string-port? predicate (KenD)
----------------------------------------------------------------------
Message: 1
Date: Sat, 25 Jun 2016 16:47:24 -0700
Subject: [Larceny-users] Request: string-port? predicate
Content-Type: text/plain; charset=US-ASCII
I would like to implement a function which returns the "contents" of a port as a string.
It would be useful to test an output-port to see if get-output-string can be applied.
[larceny in -r7rs bahaves:]
message : "?: undefined global variable: string-output-port? \n"
message : "?: undefined global variable: string-port? \n"
It would also be useful to know the byte-length of a file, and deal with directory and file entries..
Thanks much,
-KenD
------------------------------
_______________________________________________
Larceny-users mailing list
https://lists.ccs.neu.edu/bin/listinfo/larceny-users
End of Larceny-users Digest, Vol 66, Issue 1
********************************************
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.ccs.neu.edu/bin/listinfo/larceny-users
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Larceny-users digest..."
1. Request: string-port? predicate (KenD)
----------------------------------------------------------------------
Message: 1
Date: Sat, 25 Jun 2016 16:47:24 -0700
Subject: [Larceny-users] Request: string-port? predicate
Content-Type: text/plain; charset=US-ASCII
I would like to implement a function which returns the "contents" of a port as a string.
It would be useful to test an output-port to see if get-output-string can be applied.
[larceny in -r7rs bahaves:]
(import (primitives string-output-port?))
string-output-port?
...string-output-port?
message : "?: undefined global variable: string-output-port? \n"
(import (primitives string-port?))
string-port?
...string-port?
message : "?: undefined global variable: string-port? \n"
It would also be useful to know the byte-length of a file, and deal with directory and file entries..
Thanks much,
-KenD
------------------------------
_______________________________________________
Larceny-users mailing list
https://lists.ccs.neu.edu/bin/listinfo/larceny-users
End of Larceny-users Digest, Vol 66, Issue 1
********************************************