[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] Restore row and column counting for ports
From: |
Moritz Heidkamp |
Subject: |
Re: [Chicken-hackers] [PATCH] Restore row and column counting for ports (fixes #978) |
Date: |
Thu, 28 Mar 2013 09:48:16 +0100 |
Jim Ursetto <address@hidden> writes:
> Unfortunately, I think it is essentially impossible at this time to
> have the compiler do this automatically via type analysis. I believe
> it is possible to get the compiler to treat string ports, for example,
> as a separate type and specialize on that. However, once you do this,
> you cannot use the existing procedures (such as close-input-port)
> which specialize on plain input-ports and output-ports, as there's no
> way to say that a particular type (string-input-port) is derived from
> another type (input-port) and is valid in lieu of the base type.
Doesn't (define-type string-input-port input-port) work here?
Moritz