On Tue, 3 Jul 2001, ts wrote:

> >>>>> "D" == David Alan Black <dblack / candle.superlink.net> 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