From: David Alan Black Date: 2001-07-03T01:24:27+09:00 Subject: [ruby-talk:17160] Re: RCR: Exception methods (was: Re: Re: keeping an Exception object alive) On Tue, 3 Jul 2001, ts wrote: > >>>>> "D" == David Alan Black writes: > > D> there could be, instead, something like: > > D> ID array = rb_intern("array"); > D> /* ... */ > D> if (rb_respond_to(arg, array)) {...} > > pigeon% grep to_ary *.c [...] > eval.c: if (rb_respond_to(val, to_ary)) { [...] See my response to Dave -- also: $ cd /usr/local/lib/ruby $ grep '\.to_a' `find . -name *.rb -print` | wc 52 If .exception had done that, I wouldn't have starting questioning its very existence :-) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav