[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #300: allow reading without "hanging"
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #300: allow reading without "hanging" |
Date: |
Sat, 31 Jul 2010 22:10:40 -0000 |
#300: allow reading without "hanging"
---------------------------------+------------------------------------------
Reporter: felix | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: core libraries | Version: 4.5.x
Keywords: read-string no-hang |
---------------------------------+------------------------------------------
(suggested by Alejandro)
It would be nice to have a "read as much of input as is currently
available" type of `read-string[!]`, say,
(read-string/no-hang NUM [PORT]) -> STRING (may be shorter than NUM)
(read-string!/no-hang NUM STRING [PORT [START]]) -> NUM'
This could probably be implemented using another port method, defaulting
to `char-ready?` + `read-char`.
--
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/300>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Chicken-janitors] #300: allow reading without "hanging",
Chicken Trac <=