From: Mathieu Bouchard Date: 2001-01-15T06:02:08+09:00 Subject: [ruby-talk:9301] Re: Array#=== > Long ago Array#=== is default Object#=== (== Object#==). It was > redefined Array#include? in some period since somone had complained an > Array on when closes should be used for membership test for clean > programming. However this change was reverted later. It was said > that something like `[0] === [0]' should be true. For when closes, > array expansion was introduced as well as method arguments, so Arrays > can be used for division of chices still. > This decision was not so concrete that cannot be reverted. Discussions > were welcomed but forgotten untill now. > # ``Your opinion changes the World'' :-) keep [0] === [0] true. Array#=== could stand for inclusion. By inclusion I mean not a membership test (and so, not #include?). I mean that class Array; def === other (self & other) == other end end (well, i think it is it) matju