Project

General

Profile

Actions

Bug #123

closed

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

Added by Anonymous over 13 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
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

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

Also available in: Atom PDF