Hello ts,

Wednesday, September 25, 2002, 6:28:56 PM, you wrote:

B>> not class, but any expression - we can use === to test

t>  You have a very strange overload (C++ or j*v* like ???)

prolog-style :)  pattern-based prototype matching. it's used in almost
all modern functional languages

t>  This must work

t>   def a_method(Array a)
t>   end

t>   class A < Array
t>   end

t>   a_method(A.new)

it will work. "Array === A.new" evaluates to true

-- 
Best regards,
 Bulat                            mailto:bulatz / integ.ru