Project

General

Profile

Actions

Bug #616

closed

instance_eval and Module#to_s

Added by shyouhei (Shyouhei Urabe) about 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2009-10-19 trunk 25399) [x86_64-freebsd7.2]
Backport:
[ruby-dev:36672]

Description

=begin
以下のように、クラスの名前が1.8と違うことがあるようです。

% for i in trunk branches/ruby_1_8; do ~/target/$i/bin/ruby -ve 'instance_eval{p((C = Class.new).to_s)}'; done
ruby 1.9.0 (2008-10-06 revision 17576) [x86_64-linux]
"#Class:0x000000007c4c50"
ruby 1.8.7 (2008-09-23 revision 17572) [x86_64-linux]
"C"
=end


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #1982: Kernel.load(..., true) --> scope problemClosedmatz (Yukihiro Matsumoto)08/23/2009Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0