[Larceny-users] Larceny-users Digest, Vol 66, Issue 1

Werner Heigl werner.heigl at icloud.com
Sun Jun 26 13:59:53 EDT 2016


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

> On Jun 26, 2016, at 11:00 AM, larceny-users-request at lists.ccs.neu.edu wrote:
> 
> Send Larceny-users mailing list submissions to
>    larceny-users at lists.ccs.neu.edu
> 
> 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
>    larceny-users-request at lists.ccs.neu.edu
> 
> You can reach the person managing the list at
>    larceny-users-owner at lists.ccs.neu.edu
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Larceny-users digest..."
> 
> 
> Today's Topics:
> 
>   1. Request: string-port? predicate (KenD)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Sat, 25 Jun 2016 16:47:24 -0700
> From: KenD <Ken.Dickey at Whidbey.com>
> To: larceny-users at lists.ccs.neu.edu
> Subject: [Larceny-users] Request: string-port? predicate
> Message-ID: <20160625164724.a52e128551ae523f424d0655 at Whidbey.com>
> 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?
> Error: unhandled condition:
> ...
>    message : "?: undefined global variable: string-output-port? \n"
> 
>> (import (primitives string-port?))
> 
>> string-port?
> 
> Error: unhandled condition:
> ...
>    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
> Larceny-users at lists.ccs.neu.edu
> https://lists.ccs.neu.edu/bin/listinfo/larceny-users
> 
> 
> End of Larceny-users Digest, Vol 66, Issue 1
> ********************************************



More information about the Larceny-users mailing list