[#274] IPv6-ready ruby — Jun-ichiro itojun Hagino <itojun@...>
We KAME team (www.kame.net) are working on IPv6-ready ruby.
7 messages
1999/04/13
[#275] Re: IPv6-ready ruby
— gotoken@... (GOTO Kentaro)
1999/04/14
In message "[ruby-talk:00274] IPv6-ready ruby"
[#276] Re: IPv6-ready ruby
— Jun-ichiro itojun Hagino <itojun@...>
1999/04/14
[#297] Ruby 1.3.3-990430 — matz <matz@...>
Ruby 1.3.3-990430 is out, check out:
1 message
1999/04/30
[ruby-talk:00282] Re: 'case' question
From:
matz@... (Yukihiro Matsumoto)
Date:
1999-04-15 02:57:44 UTC
List:
ruby-talk #282
Hi.
In message "[ruby-talk:00281] 'case' question"
on 99/04/14, "bryce" <thecrow@cyberdude.com> writes:
|but this code, which I thought would be equivalent
|does not work.
|
| case e.type
| when BNClicked
| print "\nGot BNClicked"
| end
|
|Am I missing the reason why?
Because you should write this as:
> case e
> when BNClicked
> print "\nGot BNClicked"
> end
It's because case comparison is done by operator ===, which works as
`kind_of?' for classes and modules.
matz.