Ruby-dev summary #17208-17251

Hello,

This is a summary of ruby-dev ML in these days.

---- ruby-dev #17208-17251 (2002-05-23 … 2002-05-31) ----

[ruby-dev:17208] Etc

Kazuhiro NISHIYAMA pointed out that Etc.passwd is not
multithread(MT)-safe and ignores safe level.

Since there is no MT-safe and portable way to access
password database, it has not been solved yet.

[ruby-dev:17220] safe-level

Hidetoshi NAGAI asked whether Proc object should be closed
under modification of $SAFE. It is true in current ruby, and
he want to make this behavior specified.

[ruby-dev:17221] Re: StringIO

Wakou Aoyama proposed a method IO#size. It seems to be useful
for StringIO and TempFile.
But some subclasses of IO (ex. Socket) cannot know their size
correctly, so StringIO#size and TempFile#size, not IO#size,
will be implemented.

[ruby-dev:17228] Re: ((1.2)…(3.4)).to_a

Take_tk pointed out that (1.2)…(3.4) is something odd.

 p( ((1.2)..(3.4)).to_a ) #=> [1, 2, 3]

 But 1 is not included in 1.2 .. 3.4

The fundamental problem is that Range class has some
functions of Interval. #to_a method is natural for Range
(ordered discrete set), but not uniquely for Interval
(continuous set). Therefore, for Range objects of some
classes (ex. Time or Float), definitions of #to_a method
(or #each method) do not seem to be unique.
The issue is still open.

Regards,

TAKAHASHI ‘Maki’ Masayoshi E-mail: maki@rubycolor.org

Hello,

···

On Tue, Jun 04, 2002 at 03:00:19AM +0900, TAKAHASHI Masayoshi wrote:

[ruby-dev:17221] Re: StringIO

Wakou Aoyama proposed a method IO#size. It seems to be useful
for StringIO and TempFile.

something wrong. I propose StringIO#stat.size. Because IO#stat is exist.
But, IO#stat.size is not good. Therefore I withdrew this idea.


Wakou Aoyama wakou@ruby-lang.org

Hi,

···

In message “Re: ruby-dev summary #17208-17251” on 02/06/04, Tim Sutherland timsuth@ihug.co.nz writes:

This bit me in production code about a week ago when I was using min/max on
a float range instead of begin/end, and include? instead of ===.

They are all fixed in 1.7; Should I backport them?

						matz.