[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: Enumerable#zip(aRange)  does not work ?
From:       Simon Strandgaard <neoneye () adslhome ! dk>
Date:       2004-02-27 13:44:52
Message-ID: pan.2004.02.27.13.40.12.365469 () adslhome ! dk
[Download RAW message or body]

On Fri, 27 Feb 2004 22:38:36 +0900, Emmanuel Touzery wrote:
> Simon Strandgaard wrote:
>>Why isn't usage of 'to_a' and 'to_ary' consistent?
>>
[snip]
> to_a is for manual conversion, that you call yourself (explicit conversion)
> to_ary is called automatically by the runtime if necessary (implicit 
> conversion).
> 
> it's the same for to_s and to_str.
> 

I wasn't aware of this convention.  

Is there any documents where I can read more about this?

--
Simon Strandgaard

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic