From: Amitraj singh Chouhan Date: 2008-07-09T17:24:27+09:00 Subject: Re: type specific operator Thanks for making me correct. But as in case of x + y it gets converted to x.+(y). So here the type of x must be known(that is what I mean by checking type of x) and also to execute + method of x's class and to pass it argument y, type of y must be known(that is what I mean by checking the type of y). These checkings will be done at run time. My question is if we have an Idea about the type of x and y initially(at the time of writing the program) can we eliminate these type checks. I mean is there any operator or method call that will directly treat x and y as fixnum. i.e. something like int+(x,y) //specific function for adding two integer string+(x,y) //specific function for appending two strings or any thing like that which will directly treat x and y as variables known types I hope you will be getting my point. Please give me the details if there is any such thing in ruby. Thanks amitraj -- Posted via http://www.ruby-forum.com/.