From: Avdi Grimm Date: 2007-03-22T11:28:31+09:00 Subject: Re: does Ruby not support multiple "initialize" methods for a class??? ------=_Part_157375_21171190.1174530509565 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 3/21/07, ara.t.howard@noaa.gov wrote: > > def m int > p int > p 42.0 > end > > def m int, float = 42.0 > p int > p float > end > > m 42 > > now, which one is called? in order to understand this kind of stuff in > c++ > you have to become the compiler. Speaking with my C++ compiler hat on, I believe the answer is "Ambiguous function call; please be more specific" (your compiler error may vary). But your point is well-taken. -- Avdi ------=_Part_157375_21171190.1174530509565--