From: "Ara.T.Howard" Date: 2004-03-31T23:24:25+09:00 Subject: Re: ruby-dev summary 23214-23268 On Wed, 31 Mar 2004, Tanaka Akira wrote: > In article , > "Ara.T.Howard" writes: > > >> [ruby-dev:23247] IO#readpartial > >> > >> TANAKA Akira suggested a new method IO#readpartial, which is > >> a better sysread() implementation supporting stdio buffer and > >> avoiding troubles due to non-blocking I/O. > > > > this would be an awesome addition to the stdlib - i need this at least once > > per week... > > readpartial is rejected because matz doesn't like the name. matz, how about IO#head or class IO AVAILABLE = -1 IO#read(AVAILABLE) end or IO#skim i'm dying for this - i'm reduced to character IO at times... -a -- =============================================================================== | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328 | URL :: http://www.ngdc.noaa.gov/stp/ | TRY :: for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done ===============================================================================