From: nobu.nokada@... Date: 2005-11-05T10:22:06+09:00 Subject: Re: Question about NUM2LONG, symbols Hi, At Sat, 5 Nov 2005 09:57:09 +0900, Daniel Berger wrote in [ruby-talk:164299]: > I understand the duck typing approach. However, I'm curious why > rb_ary_aref() explicitly forbids symbols as arguments. Can you tell me > why? Was there some unexpected side effect? In older versions, symbols were just integers, so Symbol has to_int method. But it was considered inappropriate for array index which is successive. It is like the appendix, and no longer in 1.9. -- Nobu Nakada