SimpleDelegator.new(SystemCallError.new(0)) and ==

e$B0J2<$N$h$&$Ke(B == e$B$,BP>N$G$J$$$N$O$h$m$7$/$J$$$s$8$c$J$$$G$7$ge(B
e$B$&$+!#e(B

% ./ruby -rdelegate -ve ‘e = SystemCallError.new(0)
p SimpleDelegator.new(e) == e
p e == SimpleDelegator.new(e)’
ruby 1.9.0 (2008-05-22 revision 16533) [i686-linux]
/home/akr/ruby/yarvo0/lib/ruby/1.9.0/delegate.rb:225: warning: instance
variable @delegate_sd_obj not initialized
true
/home/akr/ruby/yarvo0/lib/ruby/1.9.0/delegate.rb:225: warning: instance
variable @delegate_sd_obj not initialized
false

Tanaka A. e$B$5$s$O=q$-$^$7$?e(B:

e$B0J2<$N$h$&$Ke(B == e$B$,BP>N$G$J$$$N$O$h$m$7$/$J$$$s$8$c$J$$$G$7$ge(B
e$B$&$+!#e(B

o = Object.new
p SimpleDelegator.new(o) == o
p o == SimpleDelegator.new(o)

e$B$b$=$&$J$j$^$9$M!#;W$&$K!"e(B
if (TYPE(rhs) != expected) {
return funcall(rhs, cmp, self);
}

e$BE*$J<BAu$r$7$F$J$$%/%i%90lHL$GH/@8$7$^$9$h$M!#e(B
e$B$3$l$O$$$+$,$7$?$b$N$G$7$g$&$+!#Hf3SMQ$Ne(Bcoercee$B$N$h$&$J$b$N$,I,MW$G$7$g$&$+e(B?

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:36933] Re:
SimpleDelegator.new(SystemCallError.new(0)) and ==”
on Sun, 26 Oct 2008 15:11:18 +0900, Yugui [email protected] writes:

|Tanaka A. e$B$5$s$O=q$-$^$7$?e(B:
|> e$B0J2<$N$h$&$Ke(B == e$B$,BP>N$G$J$$$N$O$h$m$7$/$J$$$s$8$c$J$$$G$7$ge(B
|> e$B$&$+!#e(B
|
|o = Object.new
|p SimpleDelegator.new(o) == o
|p o == SimpleDelegator.new(o)
|
|e$B$b$=$&$J$j$^$9$M!#;W$&$K!"e(B
|if (TYPE(rhs) != expected) {
| return funcall(rhs, cmp, self);
|}
|
|e$BE*$J<BAu$r$7$F$J$$%/%i%90lHL$GH/@8$7$^$9$h$M!#e(B
|e$B$3$l$O$$$+$,$7$?$b$N$G$7$g$&$+!#Hf3SMQ$Ne(Bcoercee$B$N$h$&$J$b$N$,I,MW$G$7$g$&$+e(B?

e$BBP>[email protected]$r0];}$7$h$&$H$9$l$P$=$&$J$k$+$b$7$l$^$;$s$M!#<B:]$N$He(B
e$B$3$m!"$I$N$/$i$$=EMW$J$b$N$J$s$G$7$g$&$+!#$+$J$je(B(e$B<BAu!"<B9T$He(B
e$B$be(B)e$B%3%9%H$,$+$+$k$3$H$,M=A[$5$l$^$9$,!"[email protected]=$9$k$/$i$$!)e(B

                            e$B$^$D$b$He(B e$B$f$-$R$me(B /:|)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs