From: dblack@... Date: 2002-09-30T01:11:24+09:00 Subject: Re: thoughts on typelessness Hi -- On Sun, 29 Sep 2002, Marcin 'Qrczak' Kowalczyk wrote: > Now look at Array#==: > > static VALUE > rb_ary_equal(ary1, ary2) > VALUE ary1, ary2; > { > long i; > > if (ary1 == ary2) return Qtrue; > if (TYPE(ary2) != T_ARRAY) return Qfalse; > if (RARRAY(ary1)->len != RARRAY(ary2)->len) return Qfalse; > for (i=0; ilen; i++) { > if (!rb_equal(RARRAY(ary1)->ptr[i], RARRAY(ary2)->ptr[i])) > return Qfalse; > } > return Qtrue; > } > > Again it tests the type of the second object and returns false if > it's not an array. It's not Ruby or what? :-) Well, actually it looks like C to me :-) But still, I'm the first to acknowledge the likelihood of fuzziness in my use of the term "typeless", as well as other terms. David -- David Alan Black | Register for RubyConf 2002! home: dblack@candle.superlink.net | November 1-3 work: blackdav@shu.edu | Seattle, WA, USA Web: http://pirate.shu.edu/~blackdav | http://www.rubyconf.com