On Sun, Jun 20, 2004 at 02:07:51AM +0900, Simon Strandgaard wrote:
> On Saturday 19 June 2004 19:01, Michael Neumann wrote:
> [snip]
> >
> > I never liked it that read(4) might return only 3 characters.
> >
> 
> Wouldn't it be better then to change the behavier of #read itself, so
> it fails per default in case the specified number of bytes cannot be read.
> 
> with ruby2 we should try to break as much as possible, and hopefully
> get it right.

Right. You have my vote for it!

But I fear, as #read resembles the UNIX read(2) syscall, this change
will not happen in Ruby2. 

Regards,

  Michael