Project

General

Profile

Actions

Bug #7466

closed

Hashの大きさによってHash#keysでvalueが返ることがある

Added by conceal_rs (Shin-ichiro OGAWA) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0dev (2012-11-29 trunk 37974) [x86_64-linux]
Backport:
[ruby-dev:46658]

Description

=begin
jpmobileのRuby 2.0対応をやっていてわかったのですが、添付のようなHashでkeysの戻り値が途中でvalueになってしまい、それ以降valueが返るようになります。

% ruby -v
ruby 2.0.0dev (2012-11-29 trunk 37974) [x86_64-linux]
% ruby google.rb
[1040450,
(snip)
 1041201,
 "",
 60101,
 60288]

Ruby 2.0 は rbenv install 2.0.0-dev でインストールしました。
=end


Files

google.rb (2.77 KB) google.rb conceal_rs (Shin-ichiro OGAWA), 11/29/2012 04:31 PM

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #11352: Sample code Garbage collection dies with an address is T_NONEClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0