Ah! What's operator overloading then?

Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/

On 14/02/2009, at 8:21 PM, 7stud -- <bbxx789_05ss / yahoo.com> wrote:

> Julian Leviston wrote:
>> I thought operator overloading was a non-oop way of specifying
>> multiple functions that each take different argument numbers?
>>
>
> That's called *function* overloading.  In C++, function overloading  
> and
> operator overloading are two different things.  Operator overloading
> requires a specific function signature for a given operator.  Function
> overloading on the other hand is used to create multiple function
> signatures for a given function name.
>
> -- 
> Posted via http://www.ruby-forum.com/.
>