<imodev / softhome.net> schrieb im Newsbeitrag
news:courier.40A8A6A3.00004CC5 / softhome.net...
> Hi all,
>
> I think I guess the answer to this question, but I'd like to know if I'm
> wrong or I'm missing something.
>
> I wanna ask you about method overloading. You can overload methods based
on
> the number of parameters but... what about overloading based on
parameter's
> classes? Something like (in C++):
>
> int test(int a)
> int test(char* a)
>
> Is there any way or must I write some code like: if (a.class == 'class')
> then...?

It's not built into the language, but there are some resources (text and
code) out there:
http://www.rubygarden.org/ruby?MethodOverloading

For more questions about C++ like Ruby:
http://www.rubygarden.org/ruby?RubyFromCpp

> I hope I explained right ;-)

Perfectly.

Kind regards

    robert