Project

General

Profile

Actions

Bug #123

closed

Time.now <=> SimpleDelegator.new(Time.now)

Added by Anonymous almost 16 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
Backport:
[ruby-dev:35011]

Description

=begin
Time.now <=> SimpleDelegator.new(Time.now) が nil になるのは
SimpleDelegator.new(Time.now) <=> Time.now がそうならないの
と違ってよろしくないんじゃないでしょうか。

% ./ruby -rdelegate -ve '
t = Time.now
d = SimpleDelegator.new(Time.now)
p t <=> d
p d <=> t
'
ruby 1.9.0 (2008-06-09 revision 17043) [i686-linux]
/home/akr/ruby/yarvo0/lib/ruby/1.9.0/delegate.rb:225: warning: instance variable @delegate_sd_obj not initialized
nil
1

[田中 哲][たなか あきら][Tanaka Akira]
=end


Related issues 1 (0 open1 closed)

Follows Ruby master - Bug #431: Time.now <=> SimpleDelegator.new(Time.now)ClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0