Is there a good reason why port->lines doesn't close the input port?  E.G. the 
program below, which dies at i=240 without the close-input-port? Perhaps there 
could be an optional argument that allowed this behavior?

John


#lang racket

(require net/url)

(for ([i (in-range 500)])
  (printf "~s\n" i)
  (let ([p (get-pure-port (string->url "http://www.google.com";))])
    (port->lines p)
    #;(close-input-port p)))

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-dev

Reply via email to