From: Peter Bex <[email protected]> Subject: Re: [Chicken-hackers] Suggestion for the ports unit: port-pipe Date: Mon, 9 Aug 2010 15:23:04 +0200
> On Mon, Aug 09, 2010 at 03:19:34PM +0200, Thomas Chust wrote: >> Hello, >> >> I think this would be a useful addition indeed. >> >> Looking at the SchemeCrossReference[1] and the PLT Racket manual[2] I >> find that Gauche, Racket, Scsh and STk all have a procedure compatible >> with the signature (copy-port source destination) where source >> satisfies input-port? and destination satisfies output-port?. If >> CHICKEN got a procedure for the same purpose, I think it would >> definitely make sense to make it compatible with this calling >> convention as well. > > Isn't this what the sendfile egg does? > > It currently doesn't handle custom ports as input ports, but that > could be added. > But it only provides character/string based copying, Moritz' suggestion allows arbitrary reader/write procedures, which I find quite nice. cheers, felix _______________________________________________ Chicken-hackers mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-hackers
