[#23231] What do you think about changing the return value of Kernel#require and Kernel#load to the source encoding of the required file? — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <ed.odanow@...>

Dear Ruby developers and users!

8 messages 2009/04/17

[#23318] [Feature #1408] 0.1.to_r not equal to (1/10) — Heesob Park <redmine@...>

Feature #1408: 0.1.to_r not equal to (1/10)

19 messages 2009/04/26

[ruby-core:23163] Re: 1.8.8 warning with Array("string")

From: James Gray <james@...>
Date: 2009-04-08 14:39:20 UTC
List: ruby-core #23163
On Apr 8, 2009, at 12:14 AM, Eero Saynatkari wrote:

> Excerpts from drbrain's message of Wed Apr 08 07:10:36 +0300 2009:
>>
>> $ ruby18 -ve 'p Array("multi-line\nstring")'
>> ruby 1.8.8dev (2009-04-06 revision 23143) [i386-darwin9.6.0]
>> -e:1: warning: treating String as Enumerable object is deprecated;  
>> use
>> String#each_line/lines
>> ["multi-line\n", "string"]
>>
>> <snip />
>>
>> PS: I really wouldn't mind if this last instance returned ["multi- 
>> line
>> \nstring"]
>
> Yes, it should follow to_ary? -> to_a? -> [obj].

I agree.

James Edward Gray II

In This Thread

Prev Next