[plt-scheme] copy-port and custom-port

From: YC (yinso.chen at gmail.com)
Date: Wed Jul 23 15:01:20 EDT 2008

On Wed, Jul 23, 2008 at 11:32 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:

> At Wed, 23 Jul 2008 11:20:36 -0700, YC wrote:
> > ...
> >              len)))))
>
> You should return `(bytes-length bytes-in)' here, not `len'.
>
>
That solves it!  Thanks!!

I thought I allocated `bytes-in` & `peeked` based on the `len`, so `len` can
be returned - apparently that's not the case?  What did I miss?

Thanks,
yc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080723/caaa416a/attachment.html>

Posted on the users mailing list.