[plt-scheme] copy-port and custom-port
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>